{"components":{"headers":{"IdempotentReplayed":{"description":"`true` when the call repeated an earlier call's `Idempotency-Key`: this is what that call created, as it is now, and nothing new was queued. Absent otherwise.","schema":{"enum":["true"],"type":"string"}}},"parameters":{"IdempotencyKey":{"description":"Makes a retry safe when you never got the answer to a call: a timeout, a dropped connection, a worker that crashed. Send a new key (a UUID, say) with each request you mean to make once, and the same key when you send that request again. A repeat with the key and the same method, path, query and body answers `201` with what the first call created, as it is now, marked `Idempotent-Replayed: true`, and queues nothing. The same key with a different request is a `422`. A key belongs to your app (sandbox and production apps never share one), lasts as long as what it created, and is 1 to 255 printable ASCII characters.","example":"9b2f6c1e-0d4a-4f7e-8a7b-2a1c3d4e5f60","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"minLength":1,"pattern":"^[\\x20-\\x7E]+$","type":"string"}}},"responses":{"BadRequest":{"content":{"application/json":{"example":{"errors":"unknown parameter: \"emial\""},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A parameter the operation does not take, or a value it cannot use. Nothing was queued."},"NotFound":{"content":{"application/json":{"example":{"errors":{"detail":"Not Found"}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Nothing by that id, or it belongs to another app."},"SandboxPaused":{"content":{"application/json":{"example":{"errors":{"detail":"Sandbox access is paused for this organization because the sandbox period expired and the organization does not currently have both active billing and a recent production connection. Please request an extension if you're still working on your integration or contact support if you have questions."}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A sandbox app whose organization's sandbox access is paused. Nothing was queued."},"Unauthorized":{"content":{"text/plain":{"example":"Unauthorized","schema":{"type":"string"}}},"description":"No usable API key: none sent, one that doesn't exist or was expired, or the key of an app or organization QuBe Sync has suspended. The key is Basic auth, so the answer is the challenge, with the plain-text body Unauthorized rather than JSON.","headers":{"WWW-Authenticate":{"schema":{"example":"Basic realm=\"Application\"","type":"string"}}}},"UnprocessableEntity":{"content":{"application/json":{"example":{"errors":{"webhook_url":["may not contain a username or password"]}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A field failed validation, field by field, and nothing was queued: a `webhook_url` that is not an absolute http or https URL, carries a username or password, is longer than 2048 characters, or (in production) points at localhost or a private address. An `Idempotency-Key` that isn't 1 to 255 printable ASCII characters, or that was already used for a different request, is refused in a sentence naming the header."}},"schemas":{"createItemInventoryAssembly_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"average_cost":{"description":"`average_cost` is the total value of this item divided by `quantity_on_hand`. Initially the total value is the same as the `quantity_on_hand` times the `purchase_cost` (so `average_cost` equals `purchase_cost`). However, the total value can be changed by an inventory adjustment so that it no longer matches `quantity_on_hand` times `purchase_cost`.","type":"number"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"quantity_on_sales_order":{"description":"The number of these items that have been sold (as recorded in sales orders) but not delivered to customers.","type":"number"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"item_inventory_assembly_line":{"items":{"properties":{"item_inventory_ref":{"description":"An inventory item is any merchandise or part that a business purchases, tracks as inventory, and then resells. In QuickBooks, information about an inventory item is grouped into three categories:Puchase Information includes `purchase_desc`, `purchase_cost`, `cogs_account_ref`, and `pref_vendor_ref`. Sales Information includes `sales_desc`, `sales_price`, and `sales_tax_code_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"}},"type":"object"},"type":"array"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_price":{"description":"Price charged for this item.","type":"number"},"quantity_on_order":{"description":"The number of these items that have been ordered from vendors (as recorded in purchase orders) but not received.","type":"number"},"quantity_on_hand":{"description":"The number of these items in inventory. `quantity_on_hand` times `average_cost` is `total_value` in an inventory item list. To change the `quantity_on_hand` for an item, you would have to use InventoryAdjustmentAdd not an ItemInventoryMod.","type":"number"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"build_point":{"description":"The build notification point. The QuickBooks user will receive a notification when `quantity_on_hand` plus `quantity_on_order` falls below `build_point`.","type":"number"},"max":{"description":"Maximum number of items in inventory.","type":"number"},"asset_account_ref":{"description":"Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"cogs_account_ref":{"description":"Refers to the account that QuickBooks uses to track the original cost of goods that are eventually sold. (The AccountType of this account will be CostOfGoodsSold.) In a request, if a `cogs_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"ItemInventoryAssemblyRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updatePriceLevel_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"not":{"anyOf":[{"required":["price_level_fixed_percentage","price_level_per_item_ret"]},{"required":["price_level_fixed_percentage","currency_ref"]}]},"properties":{"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.\n\nChoose at most one of: `price_level_fixed_percentage`, or the set (`currency_ref`, `price_level_per_item_ret`). Members of a set combine with each other, not with the other choices.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"price_level_fixed_percentage":{"description":"When you create a price level, you must specify whether it is a fixed percentage or a per item price level. Once you create the price level, you can’t change this. QuickBooks Pro and greater versions support fixed percentages, but only QuickBooks Premier and Enterprise support the per item price level. Where is this discount applied if Price Levels are enabled in QuickBooks preferences?\n\nChoose at most one of: `price_level_fixed_percentage`, or the set (`currency_ref`, `price_level_per_item_ret`). Members of a set combine with each other, not with the other choices.","type":"number"},"price_level_per_item_ret":{"description":"Choose at most one of: `price_level_fixed_percentage`, or the set (`currency_ref`, `price_level_per_item_ret`). Members of a set combine with each other, not with the other choices.","items":{"not":{"anyOf":[{"required":["custom_price","custom_price_percent"]},{"properties":{"custom_price":false,"custom_price_percent":false}}]},"properties":{"custom_price":{"description":"When you create a price level, you have the option to create it with a custom price that is either a fixed amount (`custom_price`) or a fixed discount percentage (`custom_price_percent`). Alternatively, instead of a flat custom price or discount, you could apply a price discount based on either the current custom price, the standard price of the item, or the cost of the item.\n\nChoose exactly one of: `custom_price`, or `custom_price_percent`.","type":"number"},"custom_price_percent":{"description":"When you create a price level, you have the option to create it with a custom price that is either a fixed amount (`custom_price`) or a fixed discount percentage (`custom_price_percent`).\n\nChoose exactly one of: `custom_price`, or `custom_price_percent`.","type":"number"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"price_level_type":{"description":"The types of price level, fixed percentage type or per item types. Per item types are only supported in Premier or Enterprise.","enum":["FixedPercentage","PerItem"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"PriceLevelRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createOtherName_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"},"alt_contact":{"description":"The name of an alternate contact person for a vendor, customer, or “other name” entry.","type":"string"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"email":{"description":"E-mail address.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"fax":{"description":"Fax number.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"notes":{"description":"Additional information.","type":"string"},"other_name_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"other_name_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"phone":{"description":"The telephone number.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"OtherNameRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3040,3070,3100,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_amount","string_too_long","name_in_use","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createBillPaymentCheck_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"address":{"description":"If an address request fails, some combination of address fields might be too long. In a Check, BillPaymentCheck, or SalesTaxPaymentCheck message, Address is the address that will print on the check.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"amount_in_home_currency":{"description":"Amount in units of the home currency.","type":"number"},"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"applied_to_txn_ret":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"balance_remaining":{"description":"The outstanding balance on this transaction. For an invoice, that’s (Subtotal + SalesTaxTotal) + the invoice’s `applied_amount`, which comes back negative (observed on QuickBooks Enterprise 24.0).","type":"number"},"discount_account_ref":{"description":"Refers to the account where this discount is tracked. In a request, if a `discount_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"discount_amount":{"description":"Reduces the receivable amount.","type":"number"},"discount_class_ref":{"description":"Class reference used in the Discount object","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"bank_account_ref":{"description":"Refers to the account from which the funds are being drawn for this check, for example, Checking or Savings. If a `bank_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"BillPaymentCheckRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createTxnDisplay_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowChartCondition":{"oneOf":[{"additionalProperties":false,"properties":{"op":{"enum":["present","absent","eq","neq","gt","gte","lt","lte","contains","starts_with","in"]},"path":{"minLength":1,"type":"string"},"value":{}},"required":["path","op"]},{"additionalProperties":false,"properties":{"all":{"items":{"$ref":"#/components/schemas/WorkflowChartCondition"},"minItems":1,"type":"array"}},"required":["all"]},{"additionalProperties":false,"properties":{"any":{"items":{"$ref":"#/components/schemas/WorkflowChartCondition"},"minItems":1,"type":"array"}},"required":["any"]},{"additionalProperties":false,"properties":{"not":{"$ref":"#/components/schemas/WorkflowChartCondition"}},"required":["not"]}],"type":"object"},"WorkflowTypesEntry":{"properties":{"description":{"type":["string","null"]},"draft":{"description":"Whether this is the working copy rather than a published version.","type":"boolean"},"input":{"description":"The run input, as JSON Schema with `$operation` references and `oneOf` + `discriminator` for bodies another input picks the operation of.","type":"object"},"name":{"type":"string"},"version":{"description":"The published version's number; null for a draft.","type":["integer","null"]}},"required":["name","version","draft","input"],"type":"object"},"createJobType_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"JobTypeRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listEmployeeDefaults_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"employee_default_payroll_info":{"properties":{"class_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"earnings":{"items":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"payroll_item_wage_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"}},"type":"object"},"type":"array"},"employee_tax_info":{"properties":{"employee_tax":{"items":{"properties":{"is_subject_to_tax":{"type":"boolean"},"payroll_item_tax_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"tax_info":{"items":{"properties":{"tax_info_category":{"type":"string"},"tax_info_value":{"type":"string"}},"type":"object"},"type":"array"},"tax_law_version":{"type":"integer"}},"type":"object"},"type":"array"},"is_standard_taxation_required":{"type":"boolean"},"state_lived":{"type":"string"},"state_worked":{"type":"string"}},"type":"object"},"is_covered_by_qualified_pension_plan":{"type":"boolean"},"non_earnings":{"items":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"amount":{"description":"Choose at most one of: `amount`, or `rate_percent`.","type":"number"},"limit":{"type":"number"},"payroll_item_non_wage_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"rate_percent":{"description":"Choose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"type":"array"},"pay_period":{"enum":["Biweekly","Daily","Monthly","Quarterly","Semimonthly","Weekly","Yearly"],"type":"string"},"sick_hours_default":{"properties":{"accrual_period":{"enum":["BeginningOfYear","EveryHourOnPaycheck","EveryPaycheck"],"type":"string"},"hours_accrued":{"type":"string"},"is_resetting_hours_each_new_year":{"type":"boolean"},"maximum_hours":{"type":"string"}},"type":"object"},"use_time_data_to_create_paychecks":{"enum":["DoNotUseTimeData","NotSet","UseTimeData"],"type":"string"},"vacation_hours_default":{"properties":{"accrual_period":{"enum":["BeginningOfYear","EveryHourOnPaycheck","EveryPaycheck"],"type":"string"},"hours_accrued":{"type":"string"},"is_resetting_hours_each_new_year":{"type":"boolean"},"maximum_hours":{"type":"string"}},"type":"object"}},"type":"object"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateWorkersCompCode_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"current_effective_date":{"description":"Indicates the date at which the workers’ compensation code went into effect. This field contains a value only if the code is currently in effect. If the code has only a future date, then this field is empty.","format":"date","type":"string"},"current_rate":{"description":"Indicates the workers’ comp insurance premium rate that is currently in effect for the current comp code. If the code doesn’t have a current effective date–that is, it has a future date only, then this field is empty.","type":"number"},"desc":{"description":"A descriptive text field.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"next_effective_date":{"description":"You can create a workers’ comp code with several rates and effective dates, both in the past, present, and future (only one in the future). Each of these dates has a rate associated with it, the idea being you can set up the comp code to support anticipated increases (or decreases) in the rate.","format":"date","type":"string"},"next_rate":{"description":"You can create a workers’ comp code with several rates and effective dates, both in the past, present, and future (only one in the future). Each of these dates has a rate associated with it, the idea being you can set up the comp code to support anticipated increases (or decreases) in the rate.","type":"number"},"rate_history":{"items":{"properties":{"effective_date":{"description":"Specifies the date at which the workers’ comp code and it’s related premium goes into effect.","format":"date","type":"string"},"rate":{"description":"Indicates the price of something.","type":"number"}},"type":"object"},"type":"array"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"WorkersCompCodeRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listBills_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"amount_due":{"description":"The total monetary amount shown on a bill or packing slip received from a vendor. `amount_due` will be the total of the amounts in the expense lines, item lines, and item group lines. `amount_due` minus any credits or discounts equals the `open_amount`.","type":"number"},"amount_due_in_home_currency":{"description":"Amount due in units of the home currency.","type":"number"},"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Appears in the A/P register and in reports that include this bill.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_paid":{"description":"If `is_paid` is true, this transaction has been paid.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_ret":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions: ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment). ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Appears in the A/P register and in reports that include this bill.","type":"string"},"open_amount":{"description":"Indicates the amount that is still owed. `amount_due` minus any credits or discounts equals the `open_amount`.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"vendor_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createCreditMemo_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"discount_line_ret":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"is_taxable":{"type":"boolean"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"credit_memo_line_group_ret":{"description":"Represents a previously defined group of lines in the credit memo. Compare with CreditMemoLine, which represents just one line in the credit memo.\n\n`credit_memo_line_ret` and `credit_memo_line_group_ret` combine: any number of each.","items":{"properties":{"credit_memo_line_ret":{"description":"Represents one line in the credit memo. Compare with CreditMemoGroupLine, which represents a previously defined group of lines in the credit memo.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"total_amount":{"description":"Subtotal plus `sales_tax_total`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"sales_tax_percentage":{"description":"The percentage charged for sales tax.","type":"number"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"is_pending":{"description":"If `is_pending` is set to true, the credit memo hasn’t been completed. Within QuickBooks, you can change the `is_pending` status for a credit memo by choosing “Mark Credit Memo As Pending” or “Mark Credit Memo As Final” from the Edit menu.","type":"boolean"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bill_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"credit_remaining_in_home_currency":{"description":"The amount of the remaining credit, expressed in units of the current home currency.","type":"number"},"subtotal":{"description":"The total of all the credit-memo lines, before taxes are applied. (By contrast, a subtotal item (an ItemSubtotal object) gives only the total of the amounts in the lines that appear above it.)","type":"number"},"sales_tax_total":{"description":"The total amount of sales tax charged.","type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_line_ret":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"credit_remaining":{"description":"Available credit.","type":"number"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"po_number":{"description":"Purchase order number.","type":"string"},"shipping_line_ret":{"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"}},"type":"object"},"credit_memo_line_ret":{"description":"Represents one line in the credit memo. Compare with CreditMemoGroupLine, which represents a previously defined group of lines in the credit memo.\n\n`credit_memo_line_ret` and `credit_memo_line_group_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"The memo doesn’t print on the credit memo, but does appear in the account register and the customer register.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"total_amount":{"description":"Subtotal plus `sales_tax_total`.","type":"number"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"}},"title":"CreditMemoRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listInventorySites_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"email":{"description":"E-mail address.","type":"string"},"fax":{"description":"Fax number.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_default_site":{"description":"If site is marked as default, this will be the site used if not specified.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_site_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a ParentRef aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"phone":{"description":"The telephone number.","type":"string"},"site_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in ShipAddressBlock or BillAddressBlock.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"site_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"site_desc":{"description":"Description of the site.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listTransactions_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"amount_in_home_currency":{"description":"Amount in units of the home currency.","type":"number"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In JournalCreditLine and JournalDebitLine messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createCustomerType_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"CustomerTypeRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createPaymentMethod_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"payment_method_type":{"description":"The payment method, such as check, cash, debit card, Visa, etc.","enum":["AmericanExpress","Cash","Check","DebitCard","Discover","ECheck","GiftCard","MasterCard","Other","OtherCreditCard","Visa"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"PaymentMethodRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3040,3070,3100,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_amount","string_too_long","name_in_use","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updatePayrollItemCompanyContribution_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"calculated_based_on":{"enum":["HoursAll","HoursWorked","Quantity","Rate"],"type":"string"},"edit_sequence":{"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_active":{"type":"boolean"},"is_tracked_by_cust_job":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"type":"object"},"limit":{"type":"number"},"limit_time_period":{"enum":["Annual","Forever"],"type":"string"},"list_id":{"type":"string"},"name":{"type":"string"},"net_or_gross":{"enum":["Gross","Net"],"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"taxability":{"items":{"properties":{"is_tax_applied":{"type":"boolean"},"payroll_item_tax_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"w2_tracking_type_value":{"type":"integer"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createPayrollItemWage_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Description of the wage: for example, Regular Pay or Overtime Pay.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"wage_type":{"description":"The type of pay.","enum":["Bonus","Commission","HourlyOvertime","HourlyRegular","HourlySick","HourlyVacation","SalaryRegular","SalarySick","SalaryVacation"],"type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listPayrollLiabilityChecks_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"address":{"properties":{"addr1":{"type":"string"},"addr2":{"type":"string"},"addr3":{"type":"string"},"addr4":{"type":"string"},"addr5":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"note":{"type":"string"},"postal_code":{"type":"string"},"state":{"type":"string"}},"type":"object"},"amount":{"type":"number"},"edit_sequence":{"type":"string"},"is_to_be_printed":{"type":"boolean"},"memo":{"type":"string"},"payroll_date":{"format":"date","type":"string"},"payroll_liability_check_line_ret":{"items":{"not":{"anyOf":[{"required":["customer_ref","vendor_ref"]}]},"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"amount":{"type":"number"},"class_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"customer_ref":{"description":"Choose at most one of: `customer_ref`, or `vendor_ref`.","properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"memo":{"type":"string"},"payroll_item_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"txn_line_id":{"type":"string"},"vendor_ref":{"description":"Choose at most one of: `customer_ref`, or `vendor_ref`.","properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"ref_number":{"type":"string"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"txn_date":{"format":"date","type":"string"},"txn_id":{"type":"string"},"txn_number":{"type":"integer"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowPromptChoice":{"description":"One thing the person can pick, in the order to show them. Answer with `{\"choice\": id}`, and `data` holding its `fields`. A choice like `use:1` is one item of a list the run offers -- a candidate, a transaction it found -- with its value already filled in by QuBe Sync, so your app never handles the ListID or TxnID. A choice with a `record` field is the search for another one, offered only on a realtime or simulated connection. Its `role` says how to weigh it beside the others.","properties":{"action":{"description":"Present when the chart gives one: the text for the choice's button where it shows as a row, in place of your own (\"Use this one\").","example":"Use existing","type":"string"},"description":{"description":"What picking it does, for a line under the label.","example":"Try the add again with a different name.","nullable":true,"type":"string"},"detail":{"description":"A short second line about the choice: a candidate's list and why it matched, a transaction's date, customer and amount, or, for a choice with `lines` and `facts`, those in one line.","example":"Customer · similar name","nullable":true,"type":"string"},"facts":{"description":"Present on a choice about one record: labelled values to show side by side under its lines, the label quieter.","example":[{"label":"Company","value":"Riverbend Electric LLC"},{"label":"Balance","value":"1,250.00"},{"label":"Added","value":"Mar 2, 2024"}],"items":{"properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"type":"object"},"maxItems":8,"type":"array"},"fields":{"description":"What to fill in before picking it, in order; empty for a choice that is a button alone.","items":{"$ref":"#/components/schemas/WorkflowPromptField"},"type":"array"},"id":{"description":"Unique within this prompt. Send it as the decision's `choice`.","example":"rename","type":"string"},"label":{"description":"What the choice says: a button's text.","example":"Add it under another name","type":"string"},"lines":{"description":"Present on a choice about one record: lines to show under its title, each already joined with ` · `.","example":["ap@riverbend.example · 512-555-0142 · Austin"],"items":{"type":"string"},"maxItems":6,"type":"array"},"role":{"description":"How to weigh the choice, so every question can be shown the same way: `pick` is one of the records the run offers (show them together as rows, each answered by its own button, the first the main action unless there is a decline), `search` looks up another one (a box under the picks; its picked match becomes another row), `decline` says none of the offered records is it (under the picks, weighed the same as them, and the main action once a search finds nothing), `cancel` ends the whole request (last, set apart, the quietest), and `answer` is anything else. Treat a role you don't know as `answer`: more may be added.","enum":["pick","search","decline","cancel","answer"],"example":"pick","type":"string"},"title":{"description":"Present on a choice about one record (a name clash's existing record): its name as QuickBooks has it, to show in place of `label` as the row's heading. Left out when the chart gives none.","example":"RIVERBEND ELECTRIC","type":"string"}},"required":["id","label","description","detail","fields","role"],"type":"object"},"listTimeTrackings_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"duration":{"description":"Time spent doing the work. In a TimeTrackAdd request, notice that although you can specify seconds, seconds aren’t returned in the response because the UI doesn’t use seconds.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In JournalCreditLine and JournalDebitLine messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"item_service_ref":{"description":"A service item refers to services that a business charges for or purchases. Examples include specialized labor, consulting hours, and professional fees. An `item_service_ref` aggregate refers to an item on the ItemService list. In a request, if an `item_service_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"notes":{"description":"Additional information.","type":"string"},"payroll_item_wage_ref":{"description":"Each payroll wage item describes and names a payment scheme, for example, Regular Pay or Overtime Pay. A `payroll_item_wage_ref` aggregate refers to one of these wage items. In a request, if a `payroll_item_wage_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"rate":{"type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateItemFixedAsset_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"acquired_as":{"description":"Indicates whether this item was new or used when the business acquired it.","enum":["New","Old"],"type":"string"},"asset_account_ref":{"description":"Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"asset_desc":{"description":"Description of the asset—maker, brand, and so on.","type":"string"},"asset_number":{"description":"The number used by the QuickBooks Fixed Asset Manager to identify this asset.","type":"string"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost_basis":{"description":"The total cost of the fixed asset. This can include the cost of improvements or repairs. This amount is used to figure depreciation.","type":"number"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"fixed_asset_sales_info":{"description":"Sales information, if this fixed asset was sold.","properties":{"sales_date":{"description":"Date when a fixed asset was sold.","format":"date","type":"string"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_expense":{"description":"Any expenses that were incurred during the sale of a fixed asset.","type":"number"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"location":{"description":"Where the asset is located or has been placed into service.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"notes":{"description":"Additional information.","type":"string"},"po_number":{"description":"Purchase order number.","type":"string"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_date":{"description":"The date when this asset was purchased.","format":"date","type":"string"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"serial_number":{"description":"The serial number of the asset.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"vendor_or_payee_name":{"description":"The name of the vendor from whom this asset was purchased.","type":"string"},"warranty_exp_date":{"description":"The date when the warranty for this asset expires.","format":"date","type":"string"},"year_end_accumulated_depreciation":{"description":"The amount the fixed asset has lost in value since it was purchased, as of the end of the year.","type":"number"},"year_end_book_value":{"description":"A reasonable estimate of the sales value of the fixed asset, as of the end of the year.","type":"number"}},"title":"ItemFixedAssetRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listBuildAssemblies_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"component_item_line_ret":{"items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"quantity_needed":{"description":"Indicates the number of the component part that is required in the assembly. For example, if the `item_ref` in this component is a bolt, the quantity needed field indicates how many of these bolts are used in the assembly.","type":"number"},"quantity_on_hand":{"description":"The number of these items in inventory. `quantity_on_hand` times AverageCost is TotalValue in an inventory item list. To change the `quantity_on_hand` for an item, you would have to use InventoryAdjustmentAdd not an ItemInventoryMod.","type":"number"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"}},"type":"object"},"type":"array"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_pending":{"description":"If `is_pending` is set to true, the transaction in question hasn’t been completed. Pending sales might include unpaid orders, estimates, tracked hours that haven’t yet been billed, or sales of back-ordered items. Within QuickBooks, you can change the `is_pending` status for a credit memo, for example, by choosing “Mark Credit Memo As Pending” or “Mark Credit Memo As Final” from the Edit menu.","type":"boolean"},"item_inventory_assembly_ref":{"description":"An inventory assembly item is one that is assembled or manufactured from inventory items. The items and/or assemblies that make up the assembly are called components. For Premier, an assembly can have a maximum of 100 components. For Enterprise, the maximum is 500 components.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"memo":{"description":"Additional information.","type":"string"},"quantity_can_build":{"description":"Indicates the number of this assembly that can be built from the parts on hand.","type":"number"},"quantity_on_hand":{"description":"The number of these items in inventory. `quantity_on_hand` times AverageCost is TotalValue in an inventory item list. To change the `quantity_on_hand` for an item, you would have to use InventoryAdjustmentAdd not an ItemInventoryMod.","type":"number"},"quantity_on_sales_order":{"description":"The number of these items that have been sold (as recorded in sales orders) but not delivered to customers.","type":"number"},"quantity_to_build":{"description":"Specifies the number of assemblies to be built. The transaction will fail if the number specified here exceeds the number of on-hand components.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createSalesTaxCode_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"desc":{"description":"Desc gives a longer explanation of Name.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_taxable":{"description":"Indicates whether this sales-tax code is tracking taxable sales. For any particular sales-tax code, `is_taxable` can’t be modified once the sales-tax code has been used in a transaction. If the “Do You Charge Sales Tax?” preference is set to Yes within QuickBooks, the default value of `is_taxable` is true.","type":"boolean"},"item_purchase_tax_ref":{"description":"For future use with international versions of QuickBooks.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Short name that will appear on sales forms to identify the tax status of an item. The Desc element gives a longer explanation of Name. Name must be unique, and it isn’t case-sensitive.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"SalesTaxCodeRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listTransfers_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"from_account_balance":{"description":"Balance for the from account.","type":"number"},"memo":{"description":"Additional information.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"to_account_balance":{"description":"Balance for the to account.","type":"number"},"transfer_from_account_ref":{"description":"Account that money will be transferred from.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"transfer_to_account_ref":{"description":"Account that money will be transferred to.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"Workflow":{"allOf":[{"$ref":"#/components/schemas/WorkflowSummary"},{"properties":{"definition":{"$ref":"#/components/schemas/WorkflowChart"},"example_input":{"type":"object"},"input_schema":{"description":"JSON Schema for this workflow's run input.","type":"object"},"references":{"description":"Keys of the workflows this one calls through a workflow state. Each must exist and be published before this one can run.","items":{"type":"string"},"type":"array"}},"type":"object"}]},"createInventorySite_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"email":{"description":"E-mail address.","type":"string"},"fax":{"description":"Fax number.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_default_site":{"description":"If site is marked as default, this will be the site used if not specified.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_site_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a ParentRef aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"phone":{"description":"The telephone number.","type":"string"},"site_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in ShipAddressBlock or BillAddressBlock.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"site_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"site_desc":{"description":"Description of the site.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"InventorySiteRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listSalesTaxPaymentChecks_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"address":{"description":"If an address request fails, some combination of address fields might be too long. In a Check, BillPaymentCheck, or SalesTaxPaymentCheck message, Address is the address that will print on the check.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"bank_account_ref":{"description":"Refers to the account from which the funds are being drawn for this check, for example, Checking or Savings. If a `bank_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_payment_check_line_ret":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listCompanies_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"accountant_copy":{"description":"Aggregate containing information about accountant copy. An Accountant’s Copy is a version of your company file your accountant can use to make changes while the original company file continues to be used for most normal operations. The key part of the accountant copy “protocol” is the dividing date which defines the fiscal period within which the accountant will be working.","properties":{"accountant_copy_exists":{"description":"Indicates whether an accountant copy has been made for this company file, with a value of true meaning a copy has been made and a value of false meaning there is no accountant copy.","type":"boolean"},"dividing_date":{"description":"The dividing date indicates the fiscal period within which the accountant is working. This date is key because as long as the accountant copy exists, no transactions can be modified or created within that period. You can add new accounts, but you can’t add new subaccounts to existing accounts, and you can’t edit, merge, or make an existing account inactive.","format":"date","type":"string"}},"type":"object"},"address":{"description":"If an address request fails, some combination of address fields might be too long. In a Check, BillPaymentCheck, or SalesTaxPaymentCheck message, Address is the address that will print on the check.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"company_address_block_for_customer":{"description":"The company address for customers expressed as an address block of Addr1 through Addr5.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"company_address_for_customer":{"description":"The address where a QuickBooks company receives mail from its customers. If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"company_email_for_customer":{"type":"string"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (`legal_company_name` and `legal_address`, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"company_type":{"description":"The QuickBooks user selects a company type from a list when creating a company file.","type":"string"},"company_web_site":{"description":"The company’s public Web address.","type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"ein":{"description":"Employer Identification Number.","type":"string"},"email":{"description":"E-mail address.","type":"string"},"fax":{"description":"Fax number.","type":"string"},"first_month_fiscal_year":{"description":"The first month in the 12-month period over which a company tracks its finances. The QuickBooks user sets this value. In QuickBooks, `first_month_fiscal_year` determines the default date range for some reports and graphs.","enum":["April","August","December","February","January","July","June","March","May","November","October","September"],"type":"string"},"first_month_income_tax_year":{"description":"In QuickBooks, `first_month_income_tax_year` determines the default date range for income tax summary and detail reports. The QuickBooks user sets this value.","enum":["April","August","December","February","January","July","June","March","May","November","October","September"],"type":"string"},"is_sample_company":{"description":"Indicates whether this company file is a QuickBooks “sample file.”","type":"boolean"},"legal_address":{"description":"`legal_address` and `legal_company_name` are used on a company’s tax forms and pay stubs. (Address and `company_name`, on the other hand, are used on invoices, checks, and other forms.) If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"legal_company_name":{"description":"`legal_company_name` and `legal_address` are used on a company’s tax forms and pay stubs. (`company_name` and Address, on the other hand, are used on invoices, checks, and other forms.)","type":"string"},"phone":{"description":"The telephone number.","type":"string"},"ssn":{"description":"Social security number.","type":"string"},"subscribed_services":{"description":"Information returned from a company query about the Intuit services that the company is currently subscribed to, for example, Intuit Payroll, QBMS, and so forth","properties":{"service":{"items":{"properties":{"domain":{"description":"Indicates the provider of the subscribed service, for example, Intuit.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"service_status":{"description":"The status of the Intuit services that the company is or has been subscribed to, for example, Intuit Payroll, QBMS.","enum":["Active","Expired","Never","Pending","Suspended","Terminated","Trial"],"type":"string"}},"type":"object"},"type":"array"}},"type":"object"},"tax_form":{"description":"The tax form that the QuickBooks user expects to file for this company’s taxes. If a `tax_form` value is assigned (that is, if it isn’t OtherOrNone), the QuickBooks user can associate each account with a tax form line. (An account’s tax form line information will show up in the response from an account query.)","enum":["Form1040","Form1065","Form1120","Form1120S","Form990","Form990PF","Form990T","OtherOrNone"],"type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listCurrencies_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"as_of_date":{"description":"The date when the exchange rate was last changed.","format":"date","type":"string"},"currency_code":{"description":"For built-in currencies, the currency code and name is the generally accepted code and name. These are based on the standard ISO 4217 code/name for a country’s currency. In most cases, the currency code is composed of the country’s two-character Internet country code plus an extra character representing the currency unit.","type":"string"},"currency_format":{"description":"The aggregate controlling the appearance of the currency with regard to comma and decimal.","properties":{"decimal_places":{"description":"This enumerated value controls the display of the decimal value, for example, 1.00. The default is 2 which means 2 decimals are displayed to the right of the decimal point, but you can specify 0 (zero) if you don’t want’ decimals to be displayed.","enum":["0","2"],"type":"string"},"decimal_separator":{"description":"This enumerated value controls the display of the decimal point, for example, 1.00 or 1,00. The default is Period but you could alternatively specify a value of Comma.","enum":["Comma","Period"],"type":"string"},"thousand_separator":{"description":"This enumerated value controls how the thousandth’s place is separated from the next thousand, for example, 1,000,000. The default is Comma, as shown, but you can replace this with one of these values: Period, Space, Apostrophe .","enum":["Apostrophe","Comma","Period","Space"],"type":"string"},"thousand_separator_grouping":{"description":"This enumerated value controls how the display of the currency value is grouped, for example, 10,000,000. The default is XX_XXX_XXX but you could replace this with X_XX_XX_XXX","enum":["XX_XXX_XXX","X_XX_XX_XXX"],"type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at `as_of_date`. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_user_defined_currency":{"description":"Indicates whether the currency is a built-in currency (value here would be false) or a currency created by a QuickBooks user (value here would be true).","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowChartIdentifier":{"pattern":"^[a-z][a-z0-9_]{0,49}$","type":"string"},"createDataExt_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"title":"DataExtRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"deleteDataExt_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"not":{"anyOf":[{"required":["list_data_ext_type","txn_data_ext_type"]},{"required":["list_data_ext_type","txn_id"]},{"required":["list_data_ext_type","txn_line_id"]},{"required":["list_data_ext_type","other_data_ext_type"]},{"required":["list_obj_ref","txn_data_ext_type"]},{"required":["list_obj_ref","txn_id"]},{"required":["list_obj_ref","txn_line_id"]},{"required":["list_obj_ref","other_data_ext_type"]},{"required":["txn_data_ext_type","other_data_ext_type"]},{"required":["txn_id","other_data_ext_type"]},{"required":["txn_line_id","other_data_ext_type"]}]},"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"list_data_ext_type":{"description":"The type of list object (e.g. Customer) that this data extension is attached to.\n\nChoose at most one of: the set (`list_data_ext_type`, `list_obj_ref`), or the set (`txn_data_ext_type`, `txn_id`, `txn_line_id`), or `other_data_ext_type`. Members of a set combine with each other, not with the other choices.","enum":["Account","Customer","Employee","Item","OtherName","Vendor"],"type":"string"},"list_obj_ref":{"description":"Refers to a list object. In a DataExtAdd request, the list object ref must be the same type as the type specified in `list_data_ext_type`. If a `list_obj_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.\n\nChoose at most one of: the set (`list_data_ext_type`, `list_obj_ref`), or the set (`txn_data_ext_type`, `txn_id`, `txn_line_id`), or `other_data_ext_type`. Members of a set combine with each other, not with the other choices.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"other_data_ext_type":{"description":"Not supported.\n\nChoose at most one of: the set (`list_data_ext_type`, `list_obj_ref`), or the set (`txn_data_ext_type`, `txn_id`, `txn_line_id`), or `other_data_ext_type`. Members of a set combine with each other, not with the other choices.","enum":["Company"],"type":"string"},"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and `data_ext_name`.","type":"string"},"time_deleted":{"description":"The time when this list or transaction object was deleted.","format":"date-time","type":"string"},"txn_data_ext_type":{"description":"The type of transaction that the data extension belongs to.\n\nChoose at most one of: the set (`list_data_ext_type`, `list_obj_ref`), or the set (`txn_data_ext_type`, `txn_id`, `txn_line_id`), or `other_data_ext_type`. Members of a set combine with each other, not with the other choices.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","VendorCredit"],"type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: the set (`list_data_ext_type`, `list_obj_ref`), or the set (`txn_data_ext_type`, `txn_id`, `txn_line_id`), or `other_data_ext_type`. Members of a set combine with each other, not with the other choices.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.\n\nChoose at most one of: the set (`list_data_ext_type`, `list_obj_ref`), or the set (`txn_data_ext_type`, `txn_id`, `txn_line_id`), or `other_data_ext_type`. Members of a set combine with each other, not with the other choices.","type":"string"}},"title":"DataExtDelRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and `data_ext_name`.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3160,3161,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_delete` (3160): QuickBooks refused to delete the record.\n* `closing_date_delete` (3161): The transaction is dated on or before the company's closing date, which is password-protected.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_delete","closing_date_delete","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"deleteDataEventRecoveryInfo_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3150,3160,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_delete` (3160): QuickBooks refused to delete the record.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","missing_element","cannot_delete","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowVersionSummary":{"properties":{"notes":{"nullable":true,"type":"string"},"number":{"type":"integer"},"promoted_by":{"description":"The email of whoever promoted this version into this app, when it arrived by promotion.","nullable":true,"type":"string"},"promoted_from":{"description":"Set when this version arrived by promotion: the source workflow's key and version.","nullable":true,"type":"object"},"published_at":{"format":"date-time","type":"string"},"published_by":{"description":"The email of whoever published it (in the dashboard, or with a `qube` CLI session), \"QuBe Sync support\" when QuBe Sync staff published it for you, or null when an app's API key did.","nullable":true,"type":"string"}},"type":"object"},"WorkflowChartTransition":{"additionalProperties":false,"properties":{"assign":{"$ref":"#/components/schemas/WorkflowChartAssignMap"},"description":{"type":"string"},"if":{"$ref":"#/components/schemas/WorkflowChartCondition"},"target":{"description":"completed, failed, a sibling key (searched upward), or an absolute dotted path.","type":"string"}},"required":["target"],"type":"object"},"createArRefundCreditCard_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"address":{"description":"If an address request fails, some combination of address fields might be too long. In a Check, BillPaymentCheck, or SalesTaxPaymentCheck message, Address is the address that will print on the check.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"memo":{"description":"Additional information.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"refund_applied_to_txn_ret":{"items":{"properties":{"credit_remaining":{"description":"Available credit.","type":"number"},"credit_remaining_in_home_currency":{"description":"The amount of the remaining credit, expressed in units of the current home currency.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"refund_amount":{"description":"Specifies the amount to be taken from the credit transaction you are linking via this aggregate. The amount specified in this aggregate can’t exceed the amount of the credit transaction you are linking. If you supply an amount that exceeds, you’ll get a runtime error.","type":"number"},"refund_amount_in_home_currency":{"description":"Specifies the amount to be taken from the credit transaction you are linking via this aggregate in the home currency.","type":"number"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"refund_from_account_ref":{"description":"In an ARRefundCreditCardAdd, the account which is the source of funds for the credit card refund. Normally this is Undeposited Funds. However, you can specify another account if you wish. If you specify nothing here, Undeposited Funds is used by default.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the Home Currency.","type":"number"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ARRefundCreditCardRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateEmployeeDefault_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"employee_default_payroll_info":{"properties":{"class_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"earnings":{"items":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"payroll_item_wage_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"}},"type":"object"},"type":"array"},"employee_tax_info":{"properties":{"employee_tax":{"items":{"properties":{"is_subject_to_tax":{"type":"boolean"},"payroll_item_tax_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"tax_info":{"items":{"properties":{"tax_info_category":{"type":"string"},"tax_info_value":{"type":"string"}},"type":"object"},"type":"array"},"tax_law_version":{"type":"integer"}},"type":"object"},"type":"array"},"is_standard_taxation_required":{"type":"boolean"},"state_lived":{"type":"string"},"state_worked":{"type":"string"}},"type":"object"},"is_covered_by_qualified_pension_plan":{"type":"boolean"},"non_earnings":{"items":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"amount":{"description":"Choose at most one of: `amount`, or `rate_percent`.","type":"number"},"limit":{"type":"number"},"payroll_item_non_wage_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"rate_percent":{"description":"Choose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"type":"array"},"pay_period":{"enum":["Biweekly","Daily","Monthly","Quarterly","Semimonthly","Weekly","Yearly"],"type":"string"},"sick_hours_default":{"properties":{"accrual_period":{"enum":["BeginningOfYear","EveryHourOnPaycheck","EveryPaycheck"],"type":"string"},"hours_accrued":{"type":"string"},"is_resetting_hours_each_new_year":{"type":"boolean"},"maximum_hours":{"type":"string"}},"type":"object"},"use_time_data_to_create_paychecks":{"enum":["DoNotUseTimeData","NotSet","UseTimeData"],"type":"string"},"vacation_hours_default":{"properties":{"accrual_period":{"enum":["BeginningOfYear","EveryHourOnPaycheck","EveryPaycheck"],"type":"string"},"hours_accrued":{"type":"string"},"is_resetting_hours_each_new_year":{"type":"boolean"},"maximum_hours":{"type":"string"}},"type":"object"}},"type":"object"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listEstimates_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"sales_tax_percentage":{"description":"The percentage charged for sales tax.","type":"number"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the home currency.","type":"number"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"estimate_line_ret":{"description":"One line of this estimate. Compare with EstimateLineGroup, which represents a previously defined group of lines in the estimate. In a Mod request, you can add a new line by supplying a `txn_line_id` value of -1.\n\n`estimate_line_ret` and `estimate_line_group_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["markup_rate","markup_rate_percent"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"markup_rate":{"description":"The markup that will be passed on to the customer for this item on this estimate. Amount, quantity, rate, and markup are related in the following way: Amount = (Quantity \\* Rate) + amount of markup\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`.","type":"number"},"markup_rate_percent":{"description":"The markup (expressed as a percentage) that will be passed on to the customer for this item on this estimate. Amount, quantity, rate, and markup are related in the following way: Amount = (Quantity \\* Rate) + amount of markup\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`.","type":"number"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"estimate_line_group_ret":{"description":"Represents a previously defined group of lines in the estimate. Compare with EstimateLine, which represents just one line in the estimate.\n\n`estimate_line_ret` and `estimate_line_group_ret` combine: any number of each.","items":{"properties":{"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"estimate_line_ret":{"description":"One line of this estimate. Compare with EstimateLineGroup, which represents a previously defined group of lines in the estimate. In a Mod request, you can add a new line by supplying a `txn_line_id` value of -1.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["markup_rate","markup_rate_percent"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"markup_rate":{"description":"The markup that will be passed on to the customer for this item on this estimate. Amount, quantity, rate, and markup are related in the following way: Amount = (Quantity \\* Rate) + amount of markup\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`.","type":"number"},"markup_rate_percent":{"description":"The markup (expressed as a percentage) that will be passed on to the customer for this item on this estimate. Amount, quantity, rate, and markup are related in the following way: Amount = (Quantity \\* Rate) + amount of markup\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`.","type":"number"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Subtotal plus `sales_tax_total`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bill_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"subtotal":{"description":"The total of all the estimate lines before taxes are applied. (By contrast, a subtotal item (an ItemSubtotal object) gives only the total of the amounts in the lines that appear above it.)","type":"number"},"sales_tax_total":{"description":"The total amount of sales tax charged.","type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"po_number":{"description":"Purchase order number.","type":"string"},"memo":{"description":"Message that appears in reports, but not on the estimate.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"total_amount":{"description":"Subtotal plus `sales_tax_total`.","type":"number"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listUnitOfMeasureSets_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"base_unit":{"description":"The unit of measure in a unit of measure set by which quantities of an item are tracked, priced, etc. If the company file is enabled for single unit of measure per item, the base unit is the only unit that is available for transaction line items.","properties":{"abbreviation":{"description":"The is the short “identifier” for a unit of measure that shows up in transaction line items in the U/M field in the QuickBooks UI.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"}},"type":"object"},"default_unit":{"items":{"properties":{"unit":{"description":"In a related unit within a unit of measure set, the name you want the unit to have. This name is displayed in the QuickBooks as an available unit for the item, if the company is enabled for multiple units of measure per item.","type":"string"},"unit_used_for":{"description":"In a default unit of measure, this specifies whether the default is to be used for purchase line items, sales line items, or shipping lines.","enum":["Purchase","Sales","Shipping"],"type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"related_unit":{"items":{"properties":{"abbreviation":{"description":"The is the short “identifier” for a unit of measure that shows up in transaction line items in the U/M field in the QuickBooks UI.","type":"string"},"conversion_ratio":{"description":"Within a unit of measure set, in any of the related units in that set, this indicates how many base units are in the related unit. That is, if the base unit is “box”, and the related unit is “case” with a conversion ratio of 10, that means there are 10 boxes in a case.","type":"number"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"}},"type":"object"},"type":"array"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"unit_of_measure_type":{"description":"The type of the unit of measure. This can be one of the values you see in the QuickBooks UI when you create a new UOM set, such as Count, or it can be your own value, which in the UI you can specify by selecting “Other” then defining it.","enum":["Area","Count","Length","Other","Time","Volume","Weight"],"type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createVendor_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"vendor_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in ShipAddressBlock or BillAddressBlock.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"mobile":{"type":"string"},"tax_on_sales_account_ref":{"description":"Account used for taxes on sales in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"prefill_account_ref":{"items":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"type":"array"},"is_sales_tax_agency":{"description":"Indicates whether the entity is a sales tax agency.","type":"boolean"},"is_tax_agency":{"description":"Is the current entity a tax agency.","type":"boolean"},"is_tax_on_tax":{"description":"For vendor in CA or UK, is there tax charged on top of tax.","type":"boolean"},"fax":{"description":"Fax number.","type":"string"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"vendor_type_ref":{"description":"Vendor types allow business owners to categorize vendors in ways that are meaningful for their businesses. For example, a vendor type might indicate which industry a vendor represents, or which part of the country a vendor is in. A `vendor_type_ref` aggregate refers to one of the types on the VendorType list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_tax_tracked_on_sales":{"description":"This flag is used for CA or UK and whether tax is tracked on sales.","type":"boolean"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"vendor_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"reporting_period":{"description":"Vendor reporting period for CA or UK. This can be monthly or quarterly.","enum":["Monthly","Quarterly"],"type":"string"},"alt_contact":{"description":"The name of an alternate contact person for a vendor, customer, or “other name” entry.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"billing_rate_ref":{"description":"Billing rates are used to override the service item rate in a time transaction (TimeTrackingAdd) based on the employee or vendor performing the work. Billing rates are assigned to an employee or a vendor to specify overrides to service items.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_limit":{"description":"Set and returned as a positive number that indicates a customer’s or vendor’s credit limit. If no value has been defined, there is no credit limit.","type":"number"},"additional_notes_ret":{"items":{"properties":{"date":{"description":"The date the note was updated.","format":"date","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"note_id":{"description":"The ID of the note.","type":"integer"}},"type":"object"},"type":"array"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"email":{"description":"E-mail address.","type":"string"},"tax_on_purchases_account_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_vendor_eligible_for1099":{"description":"If `is_vendor_eligible_for1099` is set to true, `vendor_tax_ident` and `vendor_address` are required in a vendor add request message. Otherwise, `vendor_tax_ident` and `vendor_address` are optional.","type":"boolean"},"sales_tax_return_ref":{"description":"Sales tax return information.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"contacts_ret":{"items":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"phone":{"description":"The telephone number.","type":"string"},"vendor_tax_ident":{"description":"A character string that identifies a vendor.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"balance":{"description":"A positive number indicates money owed to this vendor.","type":"number"},"name_on_check":{"description":"The vendor’s name as it will appear on checks sent to the vendor. (Corresponds in the QuickBooks user interface to the “Print on Check as” field of the Edit Vendor and New Vendor windows.)","type":"string"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"cc":{"description":"Email address that would be carbon copied or CC.","type":"string"},"suffix":{"type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_country":{"description":"The country that sales tax is collected for.","enum":["Australia","Canada","UK","US"],"type":"string"},"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"pager":{"type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_tax_tracked_on_purchases":{"description":"This flag is used for CA or UK and whether tax is tracked on purchases.","type":"boolean"},"tax_registration_number":{"description":"The tax registration number used in CA and UK.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"notes":{"description":"Additional information about this vendor.","type":"string"},"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"}},"title":"VendorRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listTimeReports_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"col_desc":{"items":{"properties":{"col_id":{"description":"An identifying number that corresponds to the position of this column in the report. The columns are numbered from left to right, starting with 1.","type":"integer"},"col_title":{"items":{"type":"string"},"type":"array"},"col_type":{"description":"The type of data that this column contains. `col_type` values are formatted types. (Returned ctPercent values, for example, will have digits after the decimal points, and ctAddr1 values will be strings.)","enum":["Account","Addr1","Addr2","Addr3","Addr4","Addr5","Aging","Amount","AmountDifference","AverageCost","BilledDate","BillingStatus","Blank","CalculatedAmount","Class","ClearedStatus","CostPrice","CreateDate","Credit","CustomField","Date","Debit","DeliveryDate","DueDate","Duration","EarliestReceiptDate","EstimateActive","FOB","IncomeSubjectToTax","Invoiced","IsAdjustment","Item","ItemDesc","ItemVendor","Label","LastModifiedBy","LatestOrPriorState","Memo","ModifiedTime","Name","NameAccountNumber","NameAddress","NameCity","NameContact","NameEmail","NameFax","NamePhone","NameState","NameZip","OpenBalance","OriginalAmount","PONumber","PaidAmount","PaidStatus","PaidThroughDate","PaymentMethod","PayrollItem","Percent","PercentChange","PercentOfTotalRetail","PercentOfTotalValue","PhysicalCount","PrintStatus","ProgressAmount","ProgressPercent","Quantity","QuantityAvailable","QuantityOnHand","QuantityOnOrder","QuantityOnPendingBuild","QuantityOnSalesOrder","ReceivedQuantity","RefNumber","ReorderPoint","RetailValueOnHand","RunningBalance","SONumber","SSNOrTaxID","SalesPerWeek","SalesRep","SalesTaxCode","ShipDate","ShipMethod","ShipToAddr1","ShipToAddr2","ShipToAddr3","ShipToAddr4","ShipToAddr5","SourceName","SplitAccount","SuggestedReorder","TaxLine","TaxTableVersion","Terms","Total","TxnID","TxnNumber","TxnType","UnitPrice","UserEdit","ValueOnHand","WageBase","WageBaseTips"],"type":"string"},"data_type":{"description":"The data type: IDTYPE, STRTYPE, and so on.","enum":["AMTTYPE","BOOLTYPE","DATETIMETYPE","DATETYPE","ENUMTYPE","GUIDTYPE","IDTYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STRTYPE","TIMEINTERVALTYPE"],"type":"string"}},"type":"object"},"type":"array"},"num_col_title_rows":{"description":"The number of rows to allocate for column titles. Although this number is usually 1, with some reports it is 2 or 3. (For an example of column titles that span multiple rows, look at a ProfitAndLossByJob report in QuickBooks.)","type":"integer"},"num_columns":{"description":"The number of columns in the report.","type":"integer"},"num_rows":{"description":"The number of rows in the report.","type":"integer"},"report_basis":{"description":"If `report_basis` is rbCash, the report bases income and expenses on the dates when money changed hands.rbAccrual, the report bases income on the dates when customers were invoiced and bases expenses on the dates when bills were entered.rbNone, the report uses the default `report_basis`, which is either the QuickBooks Preference setting or the QuickBooks default for a given type of report.","enum":["Accrual","Cash","None"],"type":"string"},"report_data":{"description":"If the report contains any data, it is given row-by-row in a `report_data` aggregate.","properties":{"data_row":{"description":"A data row contains the actual data for each column.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"subtotal_row":{"description":"A row that contains a calculated subtotal of the data in all the rows since the last SubTotalRow and, usually, a single underline. There can be multiple SubTotalRow aggregates in a report.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"text_row":{"description":"A text row contains only text and is used mainly for headings.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"type":"string"},"type":"array"},"total_row":{"description":"A row that contains a calculated total of all the data that has come before and a double underline. There will only be one `total_row` per report. If `total_row` doesn’t include any numerical values, the columns required to show the total values aren’t part of the report. These columns weren’t included when the report was customized.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"}},"type":"object"},"report_subtitle":{"description":"The subtitle for this report.","type":"string"},"report_title":{"description":"The main title for this report.","type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createBillingRate_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"not":{"anyOf":[{"required":["fixed_billing_rate","billing_rate_per_item_ret"]}]},"properties":{"billing_rate_per_item_ret":{"description":"Choose at most one of: `fixed_billing_rate`, or `billing_rate_per_item_ret`.","items":{"not":{"anyOf":[{"required":["custom_rate","custom_rate_percent"]},{"properties":{"custom_rate":false,"custom_rate_percent":false}}]},"properties":{"custom_rate":{"description":"The value specified here overrides the rate of the service item referenced in this aggregate (in the `item_ref`) with the rate you specify here. If instead you wanted a rate that is a percentage higher or lower than the service item rate, you wouldn’t use `custom_rate`, but you would use `adjust_percentage` and `adjust_billing_rate_relative_to`.\n\nChoose exactly one of: `custom_rate`, or `custom_rate_percent`.","type":"number"},"custom_rate_percent":{"description":"Using this field with BillingRateAdd will work only if the service item itself is set to a percentage, not to an amount. If you attempt to set the Billing Rate to a percentage for a service item that has an amount for the Rate, you will get an error. The kind of rate you have on the service item determines the kind of billing rate you may have on that item.\n\nChoose exactly one of: `custom_rate`, or `custom_rate_percent`.","type":"number"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"billing_rate_type":{"description":"Indicates whether the billing rate is a fixed rate or applies to specific service items.","enum":["FixedRate","PerItem"],"type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"fixed_billing_rate":{"description":"You use `fixed_billing_rate` if you want the rate to override all service items rates. Consequently, there is no need to specify any service items (and in fact you can’t specify them) if you use this element.\n\nChoose at most one of: `fixed_billing_rate`, or `billing_rate_per_item_ret`.","type":"number"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"BillingRateRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"executeQBCommandExec_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listCharges_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"balance_remaining":{"description":"The outstanding balance on this transaction. For an invoice, that’s (Subtotal + SalesTaxTotal) + the invoice’s AppliedAmount, which comes back negative (observed on QuickBooks Enterprise 24.0).","type":"number"},"billed_date":{"description":"The date when the customer was billed for what is now being charged to their credit card. (`billed_date` is the same as the date listed on an invoice or, for a statement charge, the date entered in the Statement Date field when the statement was printed.)","format":"date","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_paid":{"description":"If `is_paid` is true, this transaction has been paid.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"Indicates the price of something.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listJobTypes_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"MatchRecord":{"description":"A record a match found: enough to show it, and its `list_id` to use it by. The index can be a few minutes behind QuickBooks (`index.as_of`), so read the record by its `list_id` before a change depends on it: one renamed since comes back with its new name, and one deleted since is a 3120 (or an empty answer).","properties":{"email":{"description":"Its email, as the index holds it (lower-cased), for a person to tell candidates apart; null when it has none or isn't a customer, vendor, employee or other name.","example":"ap@acme.example","nullable":true,"type":"string"},"full_name":{"description":"Its full name: a job's or a sub-item's starts with its parent's, `Smith:Kitchen`.","example":"Acme Inc","type":"string"},"is_active":{"description":"`false` for an inactive record. QuickBooks hides those from most lists, but they keep their names: adding another with the same name is a 3100.","type":"boolean"},"list":{"description":"The list it's in: `customer`, `vendor`, `employee` or `other_name`, an item type such as `item_service`, or the list you matched in, such as `account`.","example":"customer","type":"string"},"list_id":{"description":"The record's ListID: what a reference (`customer_ref`, `item_ref`...) names it by.","example":"80000011-1712345678","type":"string"},"phone":{"description":"Its phone, for a person to tell candidates apart: a 10-digit one as `512-555-0142`, else as QuickBooks has it; null when it has none.","example":"512-555-0142","nullable":true,"type":"string"},"reasons":{"description":"Why it matched, as phrases you can show: first how the name compares (`same name`, `same after removing punctuation and suffixes`, `same words in a different order`, `same apart from spacing`, `two letters swapped`, `similar name`, or `different name` for a record found by its account number alone), then `same number` when the numbers in the names agree (or `the number asked, and more` when the record's name has every number sent and others too), then what else is the same (`same account number`, `same email`, `same phone`, `same postal code`, `same city`, `same company name`), and, for a job or sub-item matched without a `parent`, whose it is (`a job under Smith`).","example":["same after removing punctuation and suffixes"],"items":{"type":"string"},"type":"array"},"score":{"description":"How alike the names are, from 0 to 1: the trigram similarity of the two names once case, accents, punctuation and company suffixes are set aside. `1.0` for an exact match. A candidate has at least 0.44 (or the `min_score` you sent), unless it's there for another reason.","example":0.86,"maximum":1,"minimum":0,"type":"number"}},"required":["list_id","full_name","list","is_active","score","reasons","email","phone"],"type":"object"},"updatePayrollItemTax_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"edit_sequence":{"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_active":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"type":"object"},"limit":{"type":"number"},"list_id":{"type":"string"},"name":{"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_change":{"items":{"properties":{"rate_percent":{"type":"number"},"sunset_date":{"format":"date","type":"string"}},"type":"object"},"type":"array"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"state":{"type":"string"},"tax_calculated_based_on":{"enum":["Compensation","HoursAll","HoursWorked","Quantity"],"type":"string"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"w2_tracking_type_value":{"type":"integer"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createItemService_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"not":{"anyOf":[{"required":["sales_or_purchase","sales_and_purchase"]}]},"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_and_purchase":{"description":"A `sales_and_purchase` aggregate is used for items that are meant to be both purchased and sold, such as an “other charge” item that is reimbursable.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","properties":{"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"sales_or_purchase":{"description":"A `sales_or_purchase` aggregate is used for items that are meant to be either purchased or sold, but not both. For example, a `sales_or_purchase` aggregate would be used for a non-inventory item that is purchased but not sold, or for a service item that is sold but not purchased.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","not":{"anyOf":[{"required":["price","price_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"price":{"description":"The purchase price or sales price of this item.\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"},"price_percent":{"description":"The price expressed as a percent. (For example, an auto shop that calculates the cost of labor as a percentage of the cost of parts might have a service item called “Labor” that uses `price_percent` instead of Price.)\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"ItemServiceRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listBillPaymentCreditCards_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"amount_in_home_currency":{"description":"Amount in units of the home currency.","type":"number"},"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"applied_to_txn_ret":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"balance_remaining":{"description":"The outstanding balance on this transaction. For an invoice, that’s (Subtotal + SalesTaxTotal) + the invoice’s AppliedAmount, which comes back negative (observed on QuickBooks Enterprise 24.0).","type":"number"},"discount_account_ref":{"description":"Refers to the account where this discount is tracked. In a request, if a `discount_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"discount_amount":{"description":"Reduces the receivable amount.","type":"number"},"discount_class_ref":{"description":"Class reference used in the Discount object","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"credit_card_account_ref":{"description":"Refers to the credit card account to which this payment is being charged. In a request, if a `credit_card_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listLeads_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"lead_contacts_ret":{"items":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"is_primary_contact":{"description":"Flag for if this is a primary contact on a lead.","type":"boolean"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"lead_contact_id":{"description":"`lead_contact_id` is a way to identify a lead contact object. When a lead contact object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a `lead_contact_id`.","type":"integer"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"}},"type":"object"},"type":"array"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"locations_ret":{"items":{"properties":{"lead_address":{"description":"Address for the lead.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"location":{"description":"Where the asset is located or has been placed into service.","type":"string"},"location_id":{"description":"`location_id` is a way to identify a location object. When a location object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a `location_id`.","type":"integer"},"main_address":{"description":"Main address for the lead.","type":"string"}},"type":"object"},"type":"array"},"main_phone":{"description":"The main phone number.","type":"string"},"status":{"description":"The status of the lead.","enum":["Cold","Hot","Warm"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createTransfer_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"from_account_balance":{"description":"Balance for the from account.","type":"number"},"memo":{"description":"Additional information.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"to_account_balance":{"description":"Balance for the to account.","type":"number"},"transfer_from_account_ref":{"description":"Account that money will be transferred from.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"transfer_to_account_ref":{"description":"Account that money will be transferred to.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowChartReservedStateKeys":{"enum":["completed","failed"]},"updateJournalEntry_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_adjustment":{"description":"When a change is an “adjustment,” the original information is retained, usually so an accountant can see the effects of the adjustment.","type":"boolean"},"is_amounts_entered_in_home_currency":{"description":"Flag that indicates the amount being entered is in the home currency.","type":"boolean"},"is_home_currency_adjustment":{"description":"Indicates whether the transaction is using a home currency or foreign currency.","type":"boolean"},"journal_credit_line":{"description":"If no amount is included in the first credit line (or debit line) of a journal entry in the QuickBooks user interface, then subsequent SDK queries on that JournalEntry object will fail XML validation.\n\n`journal_debit_line` and `journal_credit_line` combine: any number of each.","items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In `journal_credit_line` and `journal_debit_line` messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"journal_debit_line":{"description":"If no amount is included in the first debit line (or credit line) of a journal entry in the QuickBooks user interface, then subsequent SDK queries on that JournalEntry object will fail XML validation.\n\n`journal_debit_line` and `journal_credit_line` combine: any number of each.","items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In `journal_credit_line` and `journal_debit_line` messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"JournalEntryRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listItemSubtotals_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"special_item_type":{"description":"Identifies the type of special item. See type for possible enum values.","enum":["FinanceCharge","ReimbursableExpenseGroup","ReimbursableExpenseSubtotal"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createListDisplay_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3040,3070,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_amount","string_too_long","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowTypes":{"properties":{"digest":{"description":"`sha256:<hex>` over the rest of the document; the `ETag`, and what a generated file's `--check` compares.","type":"string"},"drafts":{"additionalProperties":{"$ref":"#/components/schemas/WorkflowTypesEntry"},"description":"With `include=drafts`: each workflow whose working copy differs from what is published, by key.","type":"object"},"include_drafts":{"type":"boolean"},"operations_digest":{"description":"The digest of `/libraries/operations.json`, the manifest the `$operation` ids refer to.","type":"string"},"workflows":{"additionalProperties":{"$ref":"#/components/schemas/WorkflowTypesEntry"},"description":"Each published workflow, by key.","type":"object"}},"required":["digest","operations_digest","include_drafts","workflows"],"type":"object"},"updateEmployee_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"department":{"description":"The name of the department in the employment job details section.","type":"string"},"mobile":{"description":"Mobile telephone number.","type":"string"},"work_auth_expire_date":{"description":"Date the employee’s work authorization expires.","format":"date","type":"string"},"employee_type":{"description":"`employee_type` can affect payroll taxes for an employee. A statutory employee is a person who is defined as an employee by statute. Usually an owner or partner will be on the Other Names list, but if they are on the Employee list, their `employee_type` will be Owner.","enum":["Officer","Owner","Regular","Statutory"],"type":"string"},"disabled":{"description":"Is employee disabled?","enum":["No","Yes"],"type":"string"},"ssn":{"description":"Social security number. When you add an SSN value to an employee record, it doesn’t have to include dashes; for example, either 123-45-6789 or 123456789 would be valid.","type":"string"},"fax":{"description":"Fax number.","type":"string"},"hired_date":{"description":"An employee’s date of hire.","format":"date","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"employee_payroll_info":{"description":"Pay information for this employee.","not":{"anyOf":[{"required":["clear_earnings","earnings"]}]},"properties":{"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"clear_earnings":{"description":"If `clear_earnings` is set to true, the earnings will be deleted for this employee.\n\nChoose at most one of: `clear_earnings`, or `earnings`.","type":"boolean"},"earnings":{"description":"Choose at most one of: `clear_earnings`, or `earnings`.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"payroll_item_wage_ref":{"description":"Each payroll wage item describes and names a payment scheme, for example, Regular Pay or Overtime Pay. A `payroll_item_wage_ref` aggregate refers to one of these wage items. In a request, if a `payroll_item_wage_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"rate":{"description":"Indicates the price of something.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"}},"type":"object"},"type":"array"},"pay_period":{"description":"Indicates how often employees are paid. If you include a blank `pay_period` element in an EmployeeMod message, you’ll receive an error. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","enum":["Biweekly","Daily","Monthly","Quarterly","Semimonthly","Weekly","Yearly"],"type":"string"},"sick_hours":{"description":"Describes how “sick time” is accrued for this employee, along with how many sick hours the employee has accrued.","properties":{"accrual_period":{"description":"Indicates how an employee accrues time off. If you include a blank `accrual_period` element in an EmployeeMod message, you’ll receive an error. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","enum":["BeginningOfYear","EveryHourOnPaycheck","EveryPaycheck"],"type":"string"},"accrual_start_date":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the date on which sick leave or vacation hours in the current year began to accrue.","format":"date","type":"string"},"hours_accrued":{"description":"The number of hours that the employee will accrue per accrual period. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"},"hours_available":{"description":"The total number of hours currently available for the employee to use. If this value is empty, it will default to 0.","type":"string"},"hours_used":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the number of sick leave or vacation hours used in the current year.","type":"string"},"is_resetting_hours_each_new_year":{"description":"Indicates whether or not the hours accrued resets to zero at the beginning of the new year. If you include a blank `is_resetting_hours_each_new_year` element in an EmployeeMod message, you’ll receive an error.","type":"boolean"},"maximum_hours":{"description":"The maximum number of hours that the employee can accrue. (QuickBooks itself doesn’t enforce this limit, however. `hours_available` can be greater than `maximum_hours`.) The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"}},"type":"object"},"use_time_data_to_create_paychecks":{"description":"Indicates whether time data is used to create paychecks for this employee.","enum":["DoNotUseTimeData","NotSet","UseTimeData"],"type":"string"},"vacation_hours":{"description":"Describes how vacation time is accrued for this employee, along with how many vacation hours the employee has accrued.","properties":{"accrual_period":{"description":"Indicates how an employee accrues time off. If you include a blank `accrual_period` element in an EmployeeMod message, you’ll receive an error. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","enum":["BeginningOfYear","EveryHourOnPaycheck","EveryPaycheck"],"type":"string"},"accrual_start_date":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the date on which sick leave or vacation hours in the current year began to accrue.","format":"date","type":"string"},"hours_accrued":{"description":"The number of hours that the employee will accrue per accrual period. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"},"hours_available":{"description":"The total number of hours currently available for the employee to use. If this value is empty, it will default to 0.","type":"string"},"hours_used":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the number of sick leave or vacation hours used in the current year.","type":"string"},"is_resetting_hours_each_new_year":{"description":"Indicates whether or not the hours accrued resets to zero at the beginning of the new year. If you include a blank `is_resetting_hours_each_new_year` element in an EmployeeMod message, you’ll receive an error.","type":"boolean"},"maximum_hours":{"description":"The maximum number of hours that the employee can accrue. (QuickBooks itself doesn’t enforce this limit, however. `hours_available` can be greater than `maximum_hours`.) The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"}},"type":"object"}},"type":"object"},"part_or_full_time":{"description":"Full or Part time status of the employee.","enum":["FullTime","PartTime"],"type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"us_citizen":{"description":"Is employee a US citizen?","enum":["No","Yes"],"type":"string"},"us_veteran":{"description":"Is employee a US veteran?","enum":["No","Yes"],"type":"string"},"gender":{"description":"The gender of this employee.","enum":["Female","Male"],"type":"string"},"billing_rate_ref":{"description":"Billing rates are used to override the service item rate in a time transaction (TimeTrackingAdd) based on the employee or vendor performing the work. Billing rates are assigned to an employee or a vendor to specify overrides to service items.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"additional_notes_ret":{"items":{"properties":{"date":{"description":"The date the note was updated.","format":"date","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"note_id":{"description":"The ID of the note.","type":"integer"}},"type":"object"},"type":"array"},"description":{"description":"The description details in the employment job details section.","type":"string"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"A concatenation of `first_name`, `middle_name`, and `last_name`.","type":"string"},"email":{"description":"E-mail address.","type":"string"},"supervisor_ref":{"description":"The name of a customer, vendor, employee, or person on the “other names” list in the employment job details section.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pager_pin":{"description":"A personal identification number for this employee’s pager.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"military_status":{"description":"Military status if the employee is a US veteran.","enum":["Active","Reserve"],"type":"string"},"phone":{"description":"The telephone number.","type":"string"},"key_employee":{"description":"Is employee a key or critical employee.","enum":["No","Yes"],"type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"employee_address":{"description":"If an address request fails, some combination of address fields might be too long. If you use payroll, you must specify the employee’s city, state (or province), ZIP (or postal) code, and at least one line of the street address. (Note that the State element has restrictions when it’s used in the `employee_address` aggregate. For more information, click State in the table.)","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"type":"string"},"addr4":{"type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"When it appears in the `employee_address` aggregate, the State element acts like an ENUMTYPE with the following possible values: None, AA (military), AE (military), AK, AL, AP (military), AR, AZ, CA, CO, CT, DC, DE, FL, GA, HI, IA, ID, IL, IN, KS, KY, LA, MA, MD, ME, MI, MN, MO, MS, MT, NC, ND, NE, NH, NJ, NM, NV, NY, OH, OK, OR, PA, PR, RI, SC, SD, TN, TX, UT, VA, VT, WA, WI, WV, and WY.","type":"string"}},"type":"object"},"ethnicity":{"description":"Ethnicity of employee from AmericianIndian, Asian, Black, Hawaiian, Hispanic, White, TwoOrMoreRaces.","enum":["AmericianIndian","Asian","Black","Hawaiian","Hispanic","TwoOrMoreRaces","White"],"type":"string"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"print_as":{"description":"By default within QuickBooks, the `print_as` element is the same as the Name element.","type":"string"},"emergency_contacts":{"description":"Emergency Contact information for the employee.","properties":{"primary_contact":{"description":"Primary emergency contact information for the employee.","properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"},"relation":{"description":"Relationship of emergency contact information to the employee.","enum":["Brother","Daughter","Father","Friend","Mother","Other","Partner","Sister","Son","Spouse"],"type":"string"}},"type":"object"},"secondary_contact":{"description":"Secondary emergency contact information for the employee.","properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"},"relation":{"description":"Relationship of emergency contact information to the employee.","enum":["Brother","Daughter","Father","Friend","Mother","Other","Partner","Sister","Son","Spouse"],"type":"string"}},"type":"object"}},"type":"object"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"birth_date":{"description":"Date of birth.","format":"date","type":"string"},"released_date":{"description":"The date on which this person’s employment with the company ended.","format":"date","type":"string"},"suffix":{"type":"string"},"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"adjusted_service_date":{"description":"Adjusted service date for the employee.","format":"date","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"pager":{"description":"The pager number.","type":"string"},"target_bonus":{"description":"The target bonus amount in the employment job details section.","type":"number"},"exempt":{"description":"Exempt or Non-exempt status of the employee.","enum":["Exempt","NonExempt"],"type":"string"},"disability_desc":{"description":"Description of employee’s disablitily.","type":"string"},"original_hire_date":{"description":"Original hire date the employee was hired.","format":"date","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"on_file":{"description":"Is the employee’s I-9 on file?","enum":["No","Yes"],"type":"string"},"notes":{"description":"Additional information.","type":"string"},"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"}},"title":"EmployeeRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateCreditCardCredit_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"amount_in_home_currency":{"description":"Amount in units of the home currency.","type":"number"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_ret":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"CreditCardCreditRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateTransfer_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"from_account_balance":{"description":"Balance for the from account.","type":"number"},"memo":{"description":"Additional information.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"to_account_balance":{"description":"Balance for the to account.","type":"number"},"transfer_from_account_ref":{"description":"Account that money will be transferred from.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"transfer_to_account_ref":{"description":"Account that money will be transferred to.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listChecks_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"address":{"description":"If an address request fails, some combination of address fields might be too long. In a Check, BillPaymentCheck, or SalesTaxPaymentCheck message, Address is the address that will print on the check.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines. If a CheckAdd request doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate the Amount based on a Quantity of 1 and the suggested Cost.","type":"number"},"amount_in_home_currency":{"description":"Amount in units of the home currency.","type":"number"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines. If a CheckAdd request doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate the Amount based on a Quantity of 1 and the suggested Cost.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"The memo that is printed on the check itself.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"item_group_line_ret":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines. If a CheckAdd request doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate the Amount based on a Quantity of 1 and the suggested Cost.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines. If a CheckAdd request doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate the Amount based on a Quantity of 1 and the suggested Cost.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"linked_txn":{"items":{"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines. If a CheckAdd request doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate the Amount based on a Quantity of 1 and the suggested Cost.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date written on the check. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines. If a CheckAdd request doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate the Amount based on a Quantity of 1 and the suggested Cost.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"The memo that is printed on the check itself.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date written on the check. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"Match":{"description":"A match's answer: the tier, and the record or the candidates.","properties":{"candidates":{"description":"For `candidates`: up to 10 records, best first (exact or strong ones that weren't alone, those with your `account_number` first; then those with the same numbers in their name, then those with your numbers and more; then the most fields in common; then the highest `score`), for a person to choose from. Empty otherwise. `candidates_total` says how many qualified.","items":{"$ref":"#/components/schemas/MatchRecord"},"maxItems":10,"type":"array"},"candidates_total":{"description":"For `candidates`: how many records qualified, of which `candidates` lists the first 10; `0` for any other tier. More than 10 means the name alone doesn't pick out a record, as in a file of numbered locations (`Subway #1201`, `Subway #1202`...). Rather than show a long list of near-identical names, ask for what tells them apart (the number, a city, a postal code, an account number) and match again with it.","minimum":0,"type":"integer"},"candidates_total_complete":{"description":"`false` when `candidates_total` is a lower bound: a match reads at most 50 records, the most alike first, and it read that many, so more may qualify. `true` otherwise, and always for `exact`, `strong` and `none`.","type":"boolean"},"index":{"description":"The index the answer came from.","properties":{"as_of":{"description":"When the index last caught up with QuickBooks: a record added, renamed or deleted in QuickBooks since then isn't reflected yet.","format":"date-time","type":"string"},"state":{"enum":["ready"],"type":"string"}},"required":["state","as_of"],"type":"object"},"match":{"description":"The first tier that applies. `exact`: one record has this full name, as QuickBooks compares names (case and the spaces at either end don't count, and a run of spaces matches one). `strong`: exactly one record is the same once punctuation, accents, `&`, a leading `the`, company suffixes (Inc, LLC, Co...), spacing or word order are set aside; or has the same number in its name and a name at least 0.4 alike (`Subway #1234` for `Subway Store 1234`); or (customers, vendors, employees and other names) has the `account_number` you sent, or shares the `email`, `phone` or `postal_code` you sent and has a name at least 0.4 alike. Two or more like that are `candidates` instead. `candidates`: records whose names are like this one, best first. `none`: nothing like it. A name's numbers must agree: when both names have words with a digit (leading zeros aside), the record must have every one you sent. One with a different number instead is neither strong nor a candidate, unless it's exact or has the `account_number` you sent. One with your numbers and more (`7-Eleven #42` for `7-Eleven`) can be a candidate, never strong. With `exact_only`, only `exact` or `none`.","enum":["exact","strong","candidates","none"],"type":"string"},"record":{"anyOf":[{"$ref":"#/components/schemas/MatchRecord"},{"type":"null"}],"description":"The record, for `exact` and `strong`; `null` otherwise. Use an `exact` match as it is. Confirm a `strong` one first, as you would a candidate: `Acme Inc` and `Acme LLC` are a strong match, and can be two companies."}},"required":["match","record","candidates","candidates_total","candidates_total_complete","index"],"type":"object"},"updateToDo_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"not":{"anyOf":[{"required":["customer_ref","employee_ref"]},{"required":["customer_ref","lead_ref"]},{"required":["customer_ref","vendor_ref"]},{"required":["employee_ref","lead_ref"]},{"required":["employee_ref","vendor_ref"]},{"required":["lead_ref","vendor_ref"]}]},"properties":{"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"employee_ref":{"description":"The employee list contains payroll information about each of the company’s employees.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_done":{"description":"If `is_done` is true, this “to do” task has been completed. The default value of `is_done` is false.","type":"boolean"},"lead_ref":{"description":"The lead list contains information about leads for a company.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"notes":{"description":"Additional information.","type":"string"},"priority":{"description":"Priority may have one of the following values: Low [DEFAULT], Medium, High","enum":["High","Low","Medium"],"type":"string"},"reminder_date":{"description":"The date on which the contents of the Notes string will appear on the Reminder list within QuickBooks.","format":"date","type":"string"},"reminder_time":{"description":"The time on which the contents of the Notes string will appear on the Reminder list within QuickBooks.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"type":{"description":"Type may have one of the following values: Task [DEFAULT], Call, Fax, Email, Meeting, Appointment","enum":["Appointment","Call","Email","Fax","Meeting","Task"],"type":"string"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"ToDoRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateItemInventory_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"asset_account_ref":{"description":"Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"average_cost":{"description":"`average_cost` is the total value of this item divided by `quantity_on_hand`. Initially the total value is the same as the `quantity_on_hand` times the `purchase_cost` (so `average_cost` equals `purchase_cost`). However, the total value can be changed by an inventory adjustment so that it no longer matches `quantity_on_hand` times `purchase_cost`.","type":"number"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cogs_account_ref":{"description":"Refers to the account that QuickBooks uses to track the original cost of goods that are eventually sold. (The AccountType of this account will be CostOfGoodsSold.) In a request, if a `cogs_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"max":{"description":"Maximum number of items in inventory.","type":"number"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Appears in the Description column of checks, bills, credit card charges, and item receipts when this item is reordered.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity_on_hand":{"description":"The number of these items in inventory. `quantity_on_hand` times `average_cost` is TotalValue in an inventory item list. To change the `quantity_on_hand` for an item, you would have to use InventoryAdjustmentAdd not an ItemInventoryMod.","type":"number"},"quantity_on_order":{"description":"The number of these items that have been ordered from vendors (as recorded in purchase orders) but not received.","type":"number"},"quantity_on_sales_order":{"description":"The number of these items that have been sold (as recorded in sales orders) but not delivered to customers.","type":"number"},"reorder_point":{"description":"Quantity at which QuickBooks will remind the user to reorder this inventory item.","type":"number"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"ItemInventoryRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createShipMethod_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"ShipMethodRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3040,3070,3100,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_amount","string_too_long","name_in_use","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createSalesReceipt_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"discount_line_ret":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"is_taxable":{"type":"boolean"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"sales_receipt_line_ret":{"description":"One line of the sales receipt. Compare with SalesReceiptLineGroup, which represents a previously defined group of lines in the sales receipt.\n\n`sales_receipt_line_ret` and `sales_receipt_line_group_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"sales_tax_percentage":{"description":"The percentage charged for sales tax.","type":"number"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the home currency.","type":"number"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"sales_receipt_line_group_ret":{"description":"Represents a previously defined group of lines in the sales receipt. Compare with SalesReceiptLine, which represents just one line in the sales receipt.\n\n`sales_receipt_line_ret` and `sales_receipt_line_group_ret` combine: any number of each.","items":{"properties":{"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_receipt_line_ret":{"description":"One line of the sales receipt. Compare with SalesReceiptLineGroup, which represents a previously defined group of lines in the sales receipt.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"total_amount":{"description":"Subtotal plus `sales_tax_total`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"is_pending":{"description":"If `is_pending` is set to true, the sales receipt hasn’t been completed. Pending sales might include unpaid orders, estimates, tracked hours that haven’t yet been billed, or sales of back-ordered items.","type":"boolean"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"check_number":{"description":"The check number of a check that a QuickBooks user writes or receives from someone else.","type":"string"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bill_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"A sales receipt doesn’t ordinarily include a due date, because sales receipts are generally used for point-of-sale payments, where full payment is received at the time of purchase.","format":"date","type":"string"},"subtotal":{"description":"The total of all the sales-receipt lines before taxes are applied. (By contrast, a subtotal item (an ItemSubtotal object) gives only the total of the amounts in the lines that appear above it.)","type":"number"},"sales_tax_total":{"description":"The total amount of sales tax charged.","type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_line_ret":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"shipping_line_ret":{"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"}},"type":"object"},"memo":{"description":"Message that appears in reports, but not on the sales receipt.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the sales receipt. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"total_amount":{"description":"Subtotal plus `sales_tax_total`.","type":"number"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"SalesReceiptRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updatePreferences_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"accounting_preferences":{"properties":{"assign_classes_to":{"enum":["Accounts","Items","Names","None"],"type":"string"},"closing_date":{"format":"date","type":"string"},"is_assigning_journal_entry_numbers":{"type":"boolean"},"is_requiring_accounts":{"type":"boolean"},"is_using_account_numbers":{"type":"boolean"},"is_using_audit_trail":{"type":"boolean"},"is_using_class_tracking":{"type":"boolean"}},"type":"object"},"current_app_access_rights":{"properties":{"automatic_login_user_name":{"type":"string"},"is_automatic_login_allowed":{"type":"boolean"},"is_personal_data_access_allowed":{"type":"boolean"}},"type":"object"},"finance_charge_preferences":{"properties":{"annual_interest_rate":{"type":"number"},"calculate_charges_from":{"enum":["DueDate","InvoiceOrBilledDate"],"type":"string"},"finance_charge_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"grace_period":{"type":"integer"},"is_assessing_for_overdue_charges":{"type":"boolean"},"is_marked_to_be_printed":{"type":"boolean"},"min_finance_charge":{"type":"number"}},"type":"object"},"items_and_inventory_preferences":{"properties":{"enhanced_inventory_receiving_enabled":{"type":"boolean"},"fifo_effective_date":{"format":"date","type":"string"},"fifo_enabled":{"type":"boolean"},"is_barcode_enabled":{"type":"boolean"},"is_rsb_enabled":{"type":"boolean"},"is_tracking_on_build_assembly_enabled":{"type":"boolean"},"is_tracking_on_inventory_adjustment_enabled":{"type":"boolean"},"is_tracking_on_purchase_transactions_enabled":{"type":"boolean"},"is_tracking_on_sales_transactions_enabled":{"type":"boolean"},"is_tracking_serial_or_lot_number":{"enum":["LotNumber","None","SerialNumber"],"type":"string"}},"type":"object"},"jobs_and_estimates_preferences":{"properties":{"is_printing_items_with_zero_amounts":{"type":"boolean"},"is_using_estimates":{"type":"boolean"},"is_using_progress_invoicing":{"type":"boolean"}},"type":"object"},"multi_currency_preferences":{"properties":{"home_currency_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_multi_currency_on":{"type":"boolean"}},"type":"object"},"multi_location_inventory_preferences":{"properties":{"is_multi_location_inventory_available":{"type":"boolean"},"is_multi_location_inventory_enabled":{"type":"boolean"}},"type":"object"},"purchases_and_vendors_preferences":{"properties":{"days_bills_are_due":{"type":"integer"},"default_discount_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_automatically_using_discounts":{"type":"boolean"},"is_using_inventory":{"type":"boolean"}},"type":"object"},"reports_preferences":{"properties":{"aging_report_basis":{"enum":["AgeFromDueDate","AgeFromTransactionDate"],"type":"string"},"summary_report_basis":{"enum":["Accrual","Cash"],"type":"string"}},"type":"object"},"sales_and_customers_preferences":{"properties":{"default_fob":{"type":"string"},"default_markup":{"type":"number"},"default_ship_method_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_auto_applying_payments":{"type":"boolean"},"is_tracking_reimbursed_expenses_as_income":{"type":"boolean"},"price_levels":{"properties":{"is_rounding_sales_price_up":{"type":"boolean"},"is_using_price_levels":{"type":"boolean"}},"type":"object"}},"type":"object"},"sales_tax_preferences":{"properties":{"default_item_sales_tax_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"default_non_taxable_sales_tax_code_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"default_taxable_sales_tax_code_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_using_amounts_include_tax":{"type":"boolean"},"is_using_customer_tax_code":{"type":"boolean"},"is_using_vendor_tax_code":{"type":"boolean"},"pay_sales_tax":{"enum":["Annually","Monthly","Quarterly"],"type":"string"}},"type":"object"},"time_tracking_preferences":{"properties":{"first_day_of_week":{"enum":["Friday","Monday","Saturday","Sunday","Thursday","Tuesday","Wednesday"],"type":"string"}},"type":"object"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createItemSalesTax_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"sales_tax_return_line_ref":{"description":"Sales tax return line information.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_rate":{"description":"The tax rate. If a nonzero `tax_rate` is specified, then `tax_vendor_ref` is required.","type":"number"},"tax_vendor_ref":{"description":"Refers to the tax agency to whom collected taxes are owed. (This will be a vendor on the Vendor list.) If a nonzero `tax_rate` is specified, then `tax_vendor_ref` is required. In a request, if a `tax_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"ItemSalesTaxRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createCharge_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"balance_remaining":{"description":"The outstanding balance on this transaction. For an invoice, that’s (Subtotal + SalesTaxTotal) + the invoice’s AppliedAmount, which comes back negative (observed on QuickBooks Enterprise 24.0).","type":"number"},"billed_date":{"description":"The date when the customer was billed for what is now being charged to their credit card. (`billed_date` is the same as the date listed on an invoice or, for a statement charge, the date entered in the Statement Date field when the statement was printed.)","format":"date","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_paid":{"description":"If `is_paid` is true, this transaction has been paid.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"Indicates the price of something.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"title":"ChargeRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listCustomerMsgs_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listToDos_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"not":{"anyOf":[{"required":["customer_ref","employee_ref"]},{"required":["customer_ref","lead_ref"]},{"required":["customer_ref","vendor_ref"]},{"required":["employee_ref","lead_ref"]},{"required":["employee_ref","vendor_ref"]},{"required":["lead_ref","vendor_ref"]}]},"properties":{"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"employee_ref":{"description":"The employee list contains payroll information about each of the company’s employees.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_done":{"description":"If `is_done` is true, this “to do” task has been completed. The default value of `is_done` is false.","type":"boolean"},"lead_ref":{"description":"The lead list contains information about leads for a company.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"notes":{"description":"Additional information.","type":"string"},"priority":{"description":"Priority may have one of the following values: Low [DEFAULT], Medium, High","enum":["High","Low","Medium"],"type":"string"},"reminder_date":{"description":"The date on which the contents of the Notes string will appear on the Reminder list within QuickBooks.","format":"date","type":"string"},"reminder_time":{"description":"The time on which the contents of the Notes string will appear on the Reminder list within QuickBooks.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"type":{"description":"Type may have one of the following values: Task [DEFAULT], Call, Fax, Email, Meeting, Appointment","enum":["Appointment","Call","Email","Fax","Meeting","Task"],"type":"string"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateForm1099CategoryAccountMapping_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"category_account_mapping":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","items":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"type":"array"},"mapping_category":{"description":"A mapping category indicates the form 1099 box that one or more accounts is being mapped to. You must specify one of the following enumerated values based on the form type:","enum":["BOX1","BOX10","BOX13","BOX14","BOX2","BOX3","BOX4","BOX5","BOX6","BOX7","BOX8","BOX9"],"type":"string"},"threshold":{"description":"This is the dollar amount at which the IRS requires you to file the 1099-MISC and 1099-NEC forms. Each box (“Category” in SDK lingo) can have a separate threshold, as established by the IRS. For the latest thresholds, check the website for the Internal Revenue Service, currently at www.irs.gov.","type":"number"}},"type":"object"},"type":"array"},"is_filing1099_misc":{"description":"This property reports only (it doesn’t set!) the current status of 1099 preferences setting in the company file. The value true indicates that the company file currently has the 1099 filing preference turned on. The value false indicates that the company file isn’t currently set to file 1099-MISC and 1099-NEC forms.","type":"boolean"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createPayrollLiabilityAdjustment_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"amount":{"type":"number"},"class_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"edit_sequence":{"type":"string"},"employee_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_affecting_accounts":{"type":"boolean"},"memo":{"type":"string"},"payroll_date":{"format":"date","type":"string"},"payroll_liability_adjustment_line_ret":{"items":{"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"amount":{"type":"number"},"class_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"company_paid_attribute":{"enum":["IsExpense","IsLiability","IsLiabilityAndExpense","NotApplicable"],"type":"string"},"experience_mod_rate_amount":{"type":"number"},"income_subject_to_tax_amount":{"type":"number"},"memo":{"type":"string"},"other_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"txn_line_id":{"type":"string"},"wage_base_amount":{"type":"number"},"workers_comp_amount":{"type":"number"},"workers_comp_code_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"ref_number":{"type":"string"},"tax_table_version":{"type":"integer"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"txn_date":{"format":"date","type":"string"},"txn_id":{"type":"string"},"txn_number":{"type":"integer"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateItemNonInventory_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"not":{"anyOf":[{"required":["sales_or_purchase","sales_and_purchase"]}]},"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_and_purchase":{"description":"A `sales_and_purchase` aggregate is used for items that are meant to be both purchased and sold, such as an “other charge” item that is reimbursable.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","properties":{"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"sales_or_purchase":{"description":"A `sales_or_purchase` aggregate is used for items that are meant to be either purchased or sold, but not both. For example, a `sales_or_purchase` aggregate would be used for a non-inventory item that is purchased but not sold, or for a service item that is sold but not purchased.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","not":{"anyOf":[{"required":["price","price_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"price":{"description":"The purchase price or sales price of this item.\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"},"price_percent":{"description":"The price expressed as a percent. (For example, an auto shop that calculates the cost of labor as a percentage of the cost of parts might have a service item called “Labor” that uses `price_percent` instead of Price.)\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"ItemNonInventoryRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateInventoryAdjustment_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"inventory_adjustment_line_ret":{"items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]},{"required":["serial_number_added_or_removed","lot_number"]}]},"properties":{"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: the set (`serial_number`, `serial_number_added_or_removed`), or `lot_number`. Members of a set combine with each other, not with the other choices.","type":"string"},"quantity_difference":{"description":"Either a positive or negative number that shows the change in quantity for this inventory item.","type":"number"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: the set (`serial_number`, `serial_number_added_or_removed`), or `lot_number`. Members of a set combine with each other, not with the other choices.","type":"string"},"serial_number_added_or_removed":{"description":"Serial number that was added or removed from inventory.\n\nChoose at most one of: the set (`serial_number`, `serial_number_added_or_removed`), or `lot_number`. Members of a set combine with each other, not with the other choices.","enum":["Added","Removed"],"type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"value_difference":{"description":"Either a positive or negative number that shows a change in the total value of the entire stock of this inventory item.","type":"number"}},"type":"object"},"type":"array"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"InventoryAdjustmentRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listVendorCredits_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_amount":{"description":"The amount of a credit that is being applied to a vendor bill, reducing the amount that is owed on the bill.","type":"number"},"credit_amount_in_home_currency":{"description":"The amount of the credit, expressed in units of the current home currency.","type":"number"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Appears in the A/P register and in reports that include this credit.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_ret":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Appears in the A/P register and in reports that include this credit.","type":"string"},"open_amount":{"description":"Indicates the amount that is still owed. AmountDue minus any credits or discounts equals the `open_amount`.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createItemOtherCharge_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"not":{"anyOf":[{"required":["sales_or_purchase","sales_and_purchase"]}]},"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_and_purchase":{"description":"A `sales_and_purchase` aggregate is used for items that are meant to be both purchased and sold, such as an “other charge” item that is reimbursable.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","properties":{"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"sales_or_purchase":{"description":"A `sales_or_purchase` aggregate is used for items that are meant to be either purchased or sold, but not both. For example, a `sales_or_purchase` aggregate would be used for a non-inventory item that is purchased but not sold, or for a service item that is sold but not purchased.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","not":{"anyOf":[{"required":["price","price_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"price":{"description":"The purchase price or sales price of this item.\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"},"price_percent":{"description":"The price expressed as a percent. (For example, an auto shop that calculates the cost of labor as a percentage of the cost of parts might have a service item called “Labor” that uses `price_percent` instead of Price.)\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"special_item_type":{"description":"Identifies the type of special item. See type for possible enum values.","enum":["FinanceCharge","ReimbursableExpenseGroup","ReimbursableExpenseSubtotal"],"type":"string"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"ItemOtherChargeRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowChartInputSchema":{"additionalProperties":false,"description":"A JSON Schema subset describing one value of this input: type, properties, required, additionalProperties, items, enum, description, body_of.","properties":{"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#/components/schemas/WorkflowChartInputSchema"}],"description":"false refuses fields that properties doesn't name; true (the default) allows them; a schema allows them when they match it."},"body_of":{"description":"On an object: it is the body of the QuickBooks operation a sibling field names, validated against that operation's params when the run starts. {\"operation\": \"\\<sibling>\"} when the sibling holds an operation id (invoice.create); {\"kind\": \"\\<sibling>\", \"action\": \"create\"} when it holds a kind (customer), for the operation \\<kind>.\\<action>.","oneOf":[{"additionalProperties":false,"properties":{"operation":{"type":"string"}},"required":["operation"],"type":"object"},{"additionalProperties":false,"properties":{"action":{"enum":["create","update","query"]},"kind":{"type":"string"}},"required":["kind","action"],"type":"object"}]},"description":{"description":"What it is, shown in the usage contract's fields table.","type":"string"},"enum":{"description":"The values allowed.","minItems":1,"type":"array"},"items":{"$ref":"#/components/schemas/WorkflowChartInputSchema","description":"Every element of an array."},"properties":{"additionalProperties":{"$ref":"#/components/schemas/WorkflowChartInputSchema"},"description":"An object's fields, each a schema.","type":"object"},"required":{"description":"The fields an object must have.","items":{"type":"string"},"type":"array"},"type":{"anyOf":[{"enum":["string","number","integer","boolean","object","array","null"]},{"items":{"enum":["string","number","integer","boolean","object","array","null"]},"minItems":1,"type":"array"}],"description":"string, number, integer, boolean, object, array or null, or a list of them ([\"string\", \"null\"]). At the top it defaults to the input's own type."}},"type":"object"},"listAccountTaxLineInfos_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"tax_line_id":{"description":"An internal representation of the tax line associated with this account.","type":"integer"},"tax_line_name":{"description":"The name of the tax line associated with this account, as it appears on the tax form.","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"deleteAlert_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3150,3160,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_delete` (3160): QuickBooks refused to delete the record.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","missing_element","cannot_delete","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listHosts_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"is_automatic_login":{"description":"In a HostQuery response, `is_automatic_login` is true if this data file allows automatic login (login that doesn’t require user interaction). In a CompanyFileEvent callback, `is_automatic_login` is true if this company file has been opened via automatic login.","type":"boolean"},"list_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"account_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"max_capacity":{"description":"Maximum number of this type of object allowed in the current version of QuickBooks.","type":"integer"}},"type":"object"},"billing_rate_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"max_capacity":{"description":"Maximum number of this type of object allowed in the current version of QuickBooks.","type":"integer"}},"type":"object"},"class_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"max_capacity":{"description":"Maximum number of this type of object allowed in the current version of QuickBooks.","type":"integer"}},"type":"object"},"customer_msg_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"max_capacity":{"description":"Maximum number of this type of object allowed in the current version of QuickBooks.","type":"integer"}},"type":"object"},"customer_type_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"max_capacity":{"description":"Maximum number of this type of object allowed in the current version of QuickBooks.","type":"integer"}},"type":"object"},"entity_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"max_capacity":{"description":"Maximum number of this type of object allowed in the current version of QuickBooks.","type":"integer"}},"type":"object"},"item_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"max_capacity":{"description":"Maximum number of this type of object allowed in the current version of QuickBooks.","type":"integer"}},"type":"object"},"job_type_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"max_capacity":{"description":"Maximum number of this type of object allowed in the current version of QuickBooks.","type":"integer"}},"type":"object"},"payment_method_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"max_capacity":{"description":"Maximum number of this type of object allowed in the current version of QuickBooks.","type":"integer"}},"type":"object"},"payroll_item_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"max_capacity":{"description":"Maximum number of this type of object allowed in the current version of QuickBooks.","type":"integer"}},"type":"object"},"price_level_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"max_capacity":{"description":"Maximum number of this type of object allowed in the current version of QuickBooks.","type":"integer"}},"type":"object"},"sales_rep_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"max_capacity":{"description":"Maximum number of this type of object allowed in the current version of QuickBooks.","type":"integer"}},"type":"object"},"sales_tax_code_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"max_capacity":{"description":"Maximum number of this type of object allowed in the current version of QuickBooks.","type":"integer"}},"type":"object"},"ship_method_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"max_capacity":{"description":"Maximum number of this type of object allowed in the current version of QuickBooks.","type":"integer"}},"type":"object"},"template_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"max_capacity":{"description":"Maximum number of this type of object allowed in the current version of QuickBooks.","type":"integer"}},"type":"object"},"terms_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"max_capacity":{"description":"Maximum number of this type of object allowed in the current version of QuickBooks.","type":"integer"}},"type":"object"},"to_do_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"max_capacity":{"description":"Maximum number of this type of object allowed in the current version of QuickBooks.","type":"integer"}},"type":"object"},"vehicle_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"max_capacity":{"description":"Maximum number of this type of object allowed in the current version of QuickBooks.","type":"integer"}},"type":"object"},"vendor_type_meta_data":{"description":"The meta data for this object type. Currently limited to `max_capacity`, or the maximum number of this type of object that the current QuickBooks can handle.","properties":{"max_capacity":{"description":"Maximum number of this type of object allowed in the current version of QuickBooks.","type":"integer"}},"type":"object"}},"type":"object"},"major_version":{"type":"string"},"minor_version":{"description":"Gives detail about which version of QuickBooks is running. (`major_version` indicates the version number; `minor_version` indicates the build number of that version.)","type":"string"},"product_name":{"description":"Indicates the name of the version of QuickBooks that is acting as the server.","type":"string"},"qb_file_mode":{"description":"Indicates whether QuickBooks is open in single-user or multiuser mode.","enum":["MultiUser","SingleUser"],"type":"string"},"supported_qbxml_version":{"items":{"type":"string"},"type":"array"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowPromptDetail":{"description":"One row of what a question is about: a label and its value, both strings, already formatted for a person to read (a list as its parts joined with ' · ').","properties":{"label":{"example":"Customer","type":"string"},"value":{"example":"Lone Star Supply Co","type":"string"}},"required":["label","value"],"type":"object"},"listTerms_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"oneOf":[{"properties":{"discount_pct":{"description":"If payment is received within `std_discount_days` number of days, then this discount will apply to the payment. `discount_pct` must be between 0 and 100.","type":"number"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"std_discount_days":{"description":"If payment is received within `std_discount_days` number of days, then `discount_pct` will apply to the payment.","type":"integer"},"std_due_days":{"description":"The number of days until payment is due.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"type":{"const":"standard_terms","description":"Which record type this is; the query answers with several."}},"required":["type"],"title":"StandardTermsRet","type":"object"},{"properties":{"day_of_month_due":{"description":"The day of the month when full payment is due with no discount.","maximum":31,"minimum":1,"type":"integer"},"discount_day_of_month":{"description":"If the payment is made by this day of the month, then `discount_pct` applies.","maximum":31,"minimum":1,"type":"integer"},"discount_pct":{"description":"If payment is received within `std_discount_days` number of days, then this discount will apply to the payment. `discount_pct` must be between 0 and 100.","type":"number"},"due_next_month_days":{"description":"Handles cases when an invoice or bill is issued close to its due date. If the invoice or bill is issued within this many days of the due date, payment isn’t due until the following month. For example, with a `day_of_month_due` of 15 and a `due_next_month_days` of 2, an invoice issued on May 13th wouldn’t be due until June 15th.","type":"integer"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"type":{"const":"date_driven_terms","description":"Which record type this is; the query answers with several."}},"required":["type"],"title":"DateDrivenTermsRet","type":"object"}]},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateCustomer_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"mobile":{"type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"job_projected_end_date":{"description":"The date on which work for a sub-customer is expected to be complete; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","format":"date","type":"string"},"delivery_method":{"enum":["Email","Fax","Print"],"type":"string"},"fax":{"description":"Fax number.","type":"string"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"ship_to_address":{"items":{"properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"default_ship_to":{"description":"Flag that address is the default ship to address.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"type":"array"},"preferred_payment_method_ref":{"description":"Refers to a PaymentMethod object. In a request, if a `preferred_payment_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"alt_contact":{"description":"The name of an alternate contact person for a vendor, customer, or “other name” entry.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"job_status":{"description":"`job_status` Status information about a sub-customer; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","enum":["Awarded","Closed","InProgress","None","NotAwarded","Pending"],"type":"string"},"customer_type_ref":{"description":"Customer types allow business owners to categorize customers in ways that are meaningful for their businesses. For example, a customer type might indicate which industry a customer represents, or which part of the country a customer is in. A `customer_type_ref` aggregate refers to one of the types on the CustomerType list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"job_start_date":{"description":"The date on which work for a sub-customer was started; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","format":"date","type":"string"},"credit_limit":{"description":"Set and returned as a positive number that indicates a customer’s or vendor’s credit limit. If no value has been defined, there is no credit limit.","type":"number"},"bill_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"additional_notes_ret":{"items":{"properties":{"date":{"description":"The date the note was updated.","format":"date","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"note_id":{"description":"The ID of the note.","type":"integer"}},"type":"object"},"type":"array"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"email":{"description":"E-mail address.","type":"string"},"credit_card_info":{"description":"Customer’s credit-card information.","properties":{"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"}},"type":"object"},"contacts_ret":{"items":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_statement_with_parent":{"type":"boolean"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"phone":{"description":"The telephone number.","type":"string"},"job_desc":{"description":"A short job description for a sub-customer; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","type":"string"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"job_type_ref":{"description":"Job type can be used to separate jobs into any categories that are meaningful to the business. A `job_type_ref` aggregate refers to a job type on the JobType list. In a request, if a `job_type_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"balance":{"description":"A positive number indicates money owed by the customer. Compare with `total_balance`.","type":"number"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"print_as":{"type":"string"},"total_balance":{"description":"Total balance for this customer, including all this customer’s jobs (subcustomers). A positive number indicates money that the customer owes. If a customer doesn’t have any subcustomers, `total_balance` and Balance are the same.","type":"number"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"cc":{"description":"Email address that would be carbon copied or CC.","type":"string"},"suffix":{"type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_country":{"description":"The country that sales tax is collected for.","enum":["Australia","Canada","UK","US"],"type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"job_end_date":{"description":"The date on which work for a sub-customer was completed; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","format":"date","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"pager":{"type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_registration_number":{"description":"The tax registration number used in CA and UK.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"resale_number":{"description":"The customer’s resale number, if they have one. This number won’t affect reports or sales tax calculations.","type":"string"},"notes":{"description":"Not supported.","type":"string"},"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"},"preferred_delivery_method":{"description":"Preference for how invoices are delivered.","enum":["Email","Fax","None"],"type":"string"}},"title":"CustomerRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowRunWebhookSummary":{"description":"What a finished run changed in QuickBooks and what it was told: the part of its summary every final webhook (`workflow_run.completed`, `workflow_run.failed`, `workflow_run.cancelled`) carries. A workflow it calls runs as part of it, so what that workflow did is in these lists too. Cancelling never undoes anything in QuickBooks: `changes` is what the run had already changed, and `unconfirmed` what it may have. The per-request lists -- `requests`, `calls`, `matches` and `discarded` -- and `side_effects`, which names the state that made each change, are for inspecting the run, so a webhook leaves them out: `GET links.run` returns the whole summary (WorkflowRunSummary).","properties":{"changes":{"description":"Every record the run changed in QuickBooks, in order, wherever in the run it happened (the workflows it called included): the creates, updates, deletes, voids and merges QuickBooks answered with success, and one whose answer was lost and that was found applied afterwards, with `settled`.","items":{"properties":{"action":{"description":"What was done: `create`, `update`, `delete`, `void`, `merge`, or the operation's own verb.","example":"create","type":"string"},"full_name":{"description":"The record's full name, when QuickBooks returned one.","type":"string"},"item":{"description":"Only for a change made for one element of a state that runs a workflow once per item (each record of `push_records`): which element, 0-based, as `items[].index` says.","type":"integer"},"kind":{"description":"What it was done to: the record's kind (`customer`, `invoice`, `receive_payment`), or `transaction` for a void or delete of any transaction.","example":"customer","nullable":true,"type":"string"},"list_id":{"description":"The record's ListID, when QuickBooks returned one.","type":"string"},"ref_number":{"description":"The transaction's number, when QuickBooks returned one.","type":"string"},"settled":{"description":"Only when QuickBooks' answer was lost and the change was found applied afterwards: how.","enum":["found","already_deleted","already_current","kept"],"type":"string"},"txn_id":{"description":"The transaction's TxnID, when QuickBooks returned one.","type":"string"}},"required":["action","kind"],"type":"object"},"type":"array"},"decisions":{"description":"Every answer the run was given, in order.","items":{"properties":{"at":{"format":"date-time","type":"string"},"choice":{"description":"The choice picked, as it was POSTed (`use:1`, `none`, `cancel`).","example":"none","type":"string"},"item":{"description":"Only for a question asked for one element of a list (one reference of `add_transaction`, one record of `push_records`): which, 0-based, as `prompt.from.item_index` said.","type":"integer"},"question":{"description":"The question it answered: its `prompt.id`, the path of the state that asked, on into a workflow the run called.","example":"find_references / ask","type":"string"}},"required":["question","choice","at"],"type":"object"},"type":"array"},"ended_at":{"format":"date-time","type":"string"},"notifications":{"description":"Only when the run's notify states sent the app anything, the workflows it called included: how many `workflow_run.notification` webhooks were delivered (`sent`) and how many never were (`failed`: every attempt failed, or the data was over 4 MB).","properties":{"failed":{"type":"integer"},"sent":{"type":"integer"}},"type":"object"},"stopped_at":{"description":"Only on `workflow_run.failed` and `workflow_run.cancelled`: the state the run was in when it ended -- a path into the workflow it called when it ended while one was running.","example":"create_customer / resolve_conflict.ask_about_customer","nullable":true,"type":"string"},"unconfirmed":{"description":"Only when there is one: the changes QuickBooks never answered that the run neither found applied nor sent again -- the chart asked your app and it picked another record, say, or the run failed or was cancelled first. Each may or may not have changed QuickBooks, so it is not in `changes`: check QuickBooks before sending it again.","items":{"properties":{"action":{"description":"What was done: `create`, `update`, `delete`, `void`, `merge`, or the operation's own verb.","example":"create","type":"string"},"item":{"description":"Only for a change made for one element of a state that runs a workflow once per item (each record of `push_records`): which element, 0-based, as `items[].index` says.","type":"integer"},"kind":{"description":"What it was done to: the record's kind (`customer`, `invoice`, `receive_payment`), or `transaction` for a void or delete of any transaction.","example":"customer","nullable":true,"type":"string"}},"required":["action","kind"],"type":"object"},"type":"array"}},"type":"object"},"WorkflowChartPrompt":{"properties":{"data":{"$ref":"#/components/schemas/WorkflowChartTemplate"},"details":{"description":"What the question is about, as label and value rows a person reads above the choices: the name and kind, a transaction's number, the operation. Each label and value is a template rendered when the run asks, to a string (a number as its text, a list as its parts joined with ' · '); a row whose value renders to nothing is left out.","items":{"additionalProperties":false,"properties":{"label":{"$ref":"#/components/schemas/WorkflowChartTemplate"},"value":{"$ref":"#/components/schemas/WorkflowChartTemplate"}},"required":["label","value"],"type":"object"},"maxItems":20,"type":"array"},"message":{"type":"string"},"options":{"items":{"properties":{"action":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"The choice's button text where it shows as a row (Use existing); without it the screen's own (Use this one)."},"description":{"type":"string"},"detail":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"What the choice is about, in one line under its label: a template, or a list of them whose parts that render to something are joined with ' · '. A plain option's choice only: a choose field's items take its own detail. Left out with lines or facts, it is those in one line (Riverbend Electric LLC · ap@riverbend.example · Balance 1,250.00), for an app that shows only detail."},"facts":{"description":"Labelled values under the lines, shown as label and value side by side (Balance 1,250.00, Added Mar 2, 2024: {\"label\": \"Added\", \"value\": {\"\\$format\": \"\\${vars.holder.time_created}\", \"as\": \"date\"}}). A fact whose value renders to nothing, or only repeats the title, is left out.","items":{"additionalProperties":false,"properties":{"label":{"$ref":"#/components/schemas/WorkflowChartTemplate"},"value":{"$ref":"#/components/schemas/WorkflowChartTemplate"}},"required":["label","value"],"type":"object"},"maxItems":8,"type":"array"},"fields":{"additionalProperties":{"properties":{"choose":{"additionalProperties":false,"description":"One choice per element of from, this field already filled: the choice's id is the option's and its position (use:1, use:2, ...), and the app answers it with {\"choice\": \"use:1\"}, never the value itself. value, label and detail are templates rendered for each element, which is at item (\\${item.list_id}). At most 25 are offered, and 26 choices in all. At most one field of an option has choose.","properties":{"detail":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"A short second line, such as the record's list or city: a list renders as its parts joined with ' · '."},"from":{"description":"A template that renders to a list, such as \\${vars.found.candidates}.","type":"string"},"label":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"What the choice says, such as \\${item.full_name}."},"value":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"What the field is filled with for the element, such as \\${item.list_id}."}},"required":["from","value","label"],"type":"object"},"columns":{"description":"For a field of type rows: what each row is asked, in order. Every row shares them, so an app's screen can set one column on many rows at once.","items":{"additionalProperties":false,"properties":{"default":{"description":"One of enum's values, chosen when the row shows; the person can change it. A row's values still win.","type":["string","number"]},"enum":{"$ref":"#/components/schemas/WorkflowChartPromptEnum"},"label":{"type":"string"},"name":{"$ref":"#/components/schemas/WorkflowChartIdentifier"},"record":{"additionalProperties":false,"description":"A search column: a row's value comes from the run's search (links.search with field=\\<field>.\\<column> and row=\\<key>). Its type is string: a search answers a ListID.","properties":{"kind":{"description":"The list to search (as a field's record.kind: account_income for income accounts, say), or a template for it over item, the row's element: \\${item.kind}.","type":"string"}},"required":["kind"],"type":"object"},"required":{"description":"Every row the column applies to (its columns name it, and its when holds) must answer it.","type":"boolean"},"type":{"enum":["string","number","boolean"]},"when":{"additionalProperties":{"minItems":1,"type":"array"},"description":"The values of the row's other columns this one applies under, such as {\"action\": [\"create\"], \"item_type\": [\"item_inventory\"]}. A column whose when doesn't hold isn't asked, and an answer to it is dropped.","type":"object"}},"required":["name","type"],"type":"object"},"minItems":1,"type":"array"},"enum":{"$ref":"#/components/schemas/WorkflowChartPromptEnum"},"label":{"type":"string"},"record":{"additionalProperties":false,"description":"A search choice: the option once more, this field of type record, filled from the run's search (links.search) of the connection's name index. Only on a realtime or simulated connection, which has one; on a standard one the choice isn't offered, so give the question another way to answer too. The field's type is string: a search answers a ListID.","properties":{"kind":{"description":"The list to search, or a template for it: customer, vendor, entity, item, an item type such as item_service, account, an account type such as account_income (that type's accounts: account_ and QuickBooks' AccountType in snake case), class, ... (a kind a match takes).","type":"string"},"label":{"description":"What the search choice says, such as Another customer…","type":"string"}},"required":["kind"],"type":"object"},"required":{"type":"boolean"},"rows":{"additionalProperties":false,"description":"For a field of type rows: one row per element of from, each rendered with the element at item.","properties":{"columns":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"The names of the columns this row asks, such as \\${item.ask.columns}; left out, every column."},"detail":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"A short second line, such as the record's kind."},"from":{"description":"A template that renders to a list, such as \\${vars.asking}. At most 100 rows.","type":"string"},"key":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"The row's key, unique among the rows: the answer is keyed by it."},"label":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"What the row says, such as \\${item.full_name}."},"values":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"What the row already has for columns it doesn't ask, an object: a column's when reads them too, and the answer carries them."}},"required":["from","key","label"],"type":"object"},"type":{"description":"string, number, boolean, object or array, as an input declares them; or rows: the same columns asked of each row of a list (rows and columns), answered as an object keyed by each row's key (docs/missing-records-question.md).","enum":["string","number","boolean","object","array","rows"]}},"required":["type"],"type":"object"},"propertyNames":{"$ref":"#/components/schemas/WorkflowChartIdentifier"},"type":"object"},"id":{"allOf":[{"$ref":"#/components/schemas/WorkflowChartIdentifier"},{"not":{"enum":["success","error","done","always"]}}]},"label":{"type":"string"},"lines":{"description":"Lines under the title, each a template, or a list of them whose parts that render to something are joined with ' · ' ([\"\\${vars.holder.email}\", \"\\${vars.holder.phone}\"]). A line that renders to nothing, or only repeats the title, is left out.","items":{"$ref":"#/components/schemas/WorkflowChartTemplate"},"maxItems":6,"type":"array"},"role":{"description":"How a screen weighs the option's choice: pick (one of the offered records), search (look another one up), decline (none of the offered records is it), cancel (end the whole request) or answer (anything else). Left out, it is worked out: option id cancel is cancel, none is decline, an item of a choose field is pick, a record field's search choice is search, anything else answer. The items a choose field expands to are always pick.","enum":["pick","search","decline","cancel","answer"]},"title":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"For a choice about one record, the record's name, shown in place of the label (\\${vars.holder.full_name}). The label stays, for an app that doesn't show title."}},"required":["id","label"],"type":"object"},"minItems":1,"type":"array"}},"required":["message","options"],"type":"object"},"listAlerts_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"alert_tag":{"type":"string"},"is_marked_done":{"type":"boolean"},"next_alert_date":{"format":"date","type":"string"},"owner_id":{"type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listWorkersCompCodes_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"current_effective_date":{"description":"Indicates the date at which the workers’ compensation code went into effect. This field contains a value only if the code is currently in effect. If the code has only a future date, then this field is empty.","format":"date","type":"string"},"current_rate":{"description":"Indicates the workers’ comp insurance premium rate that is currently in effect for the current comp code. If the code doesn’t have a current effective date–that is, it has a future date only, then this field is empty.","type":"number"},"desc":{"description":"A descriptive text field.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"next_effective_date":{"description":"You can create a workers’ comp code with several rates and effective dates, both in the past, present, and future (only one in the future). Each of these dates has a rate associated with it, the idea being you can set up the comp code to support anticipated increases (or decreases) in the rate.","format":"date","type":"string"},"next_rate":{"description":"You can create a workers’ comp code with several rates and effective dates, both in the past, present, and future (only one in the future). Each of these dates has a rate associated with it, the idea being you can set up the comp code to support anticipated increases (or decreases) in the rate.","type":"number"},"rate_history":{"items":{"properties":{"effective_date":{"description":"Specifies the date at which the workers’ comp code and it’s related premium goes into effect.","format":"date","type":"string"},"rate":{"description":"Indicates the price of something.","type":"number"}},"type":"object"},"type":"array"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"Error":{"description":"What a refused request answers with. The one key is errors, and its shape says what went wrong: a sentence when the endpoint explains the refusal in words (a parameter the operation does not take, a key already taken, a run that has already ended); an object with detail, and a code when there is one, when the request named nothing that exists or may not do what it asked (402, 403, 404, and a CLI session's 401), or an answer to a run's question was refused (the decisions endpoint's 400, 409 and 422, which always carry a code to branch on); an object of fields, each a list of messages, when a record failed validation and nothing was saved; a list of {path, message} problems when a submitted document or input fails validation. A request without a usable API key (a suspended app's or organization's included) gets a 401 Basic challenge with the plain-text body Unauthorized, not JSON; a CLI session acting on a suspended app gets a 403 with the code suspended.","properties":{"errors":{"oneOf":[{"example":"unknown parameter: \"emial\"","title":"A sentence","type":"string"},{"properties":{"code":{"example":"read_only_session","type":"string"},"detail":{"example":"Not Found","type":"string"}},"required":["detail"],"title":"Detail and code","type":"object"},{"additionalProperties":{"items":{"type":"string"},"type":"array"},"example":{"webhook_url":["may not contain a username or password"]},"title":"Field by field","type":"object"},{"items":{"properties":{"message":{"example":"is required","type":"string"},"path":{"example":"input.customer","type":"string"}},"required":["path","message"],"type":"object"},"title":"Located problems","type":"array"}]}},"required":["errors"],"type":"object"},"deleteList_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"title":"ListDelType","type":"object"},{"title":"ListID","type":"object"},{"title":"TimeDeleted","type":"object"},{"title":"FullName","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3150,3160,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_delete` (3160): QuickBooks refused to delete the record.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","missing_element","cannot_delete","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateCreditCardCharge_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"amount_in_home_currency":{"description":"Amount in units of the home currency.","type":"number"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_ret":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the charge. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"CreditCardChargeRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listPayrollYearToDateAdjustments_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"amount":{"type":"number"},"class_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"edit_sequence":{"type":"string"},"employee_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_affecting_accounts":{"type":"boolean"},"memo":{"type":"string"},"pay_period_begin_date":{"format":"date","type":"string"},"pay_period_end_date":{"format":"date","type":"string"},"payroll_date":{"format":"date","type":"string"},"payroll_year_to_date_adjustment_line_ret":{"items":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"amount":{"type":"number"},"calculated_amount":{"type":"number"},"class_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"company_paid_attribute":{"enum":["IsExpense","IsLiability","IsLiabilityAndExpense","NotApplicable"],"type":"string"},"experience_mod_rate_amount":{"type":"number"},"hours_worked":{"type":"string"},"income_subject_to_tax_amount":{"type":"number"},"is_amount_overridden":{"type":"boolean"},"memo":{"type":"string"},"other_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"txn_line_id":{"type":"string"},"wage_base_amount":{"type":"number"},"workers_comp_amount":{"type":"number"},"workers_comp_code_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"ref_number":{"type":"string"},"tax_table_version":{"type":"integer"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"txn_date":{"format":"date","type":"string"},"txn_id":{"type":"string"},"txn_number":{"type":"integer"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowPromptEnumValue":{"properties":{"label":{"description":"What a person reads.","example":"Service","type":"string"},"value":{"description":"What to send.","example":"item_service","oneOf":[{"type":"string"},{"type":"number"}]}},"required":["value","label"],"type":"object"},"createBuildAssembly_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"component_item_line_ret":{"items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"quantity_needed":{"description":"Indicates the number of the component part that is required in the assembly. For example, if the `item_ref` in this component is a bolt, the quantity needed field indicates how many of these bolts are used in the assembly.","type":"number"},"quantity_on_hand":{"description":"The number of these items in inventory. `quantity_on_hand` times AverageCost is TotalValue in an inventory item list. To change the `quantity_on_hand` for an item, you would have to use InventoryAdjustmentAdd not an ItemInventoryMod.","type":"number"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"}},"type":"object"},"type":"array"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_pending":{"description":"If `is_pending` is set to true, the transaction in question hasn’t been completed. Pending sales might include unpaid orders, estimates, tracked hours that haven’t yet been billed, or sales of back-ordered items. Within QuickBooks, you can change the `is_pending` status for a credit memo, for example, by choosing “Mark Credit Memo As Pending” or “Mark Credit Memo As Final” from the Edit menu.","type":"boolean"},"item_inventory_assembly_ref":{"description":"An inventory assembly item is one that is assembled or manufactured from inventory items. The items and/or assemblies that make up the assembly are called components. For Premier, an assembly can have a maximum of 100 components. For Enterprise, the maximum is 500 components.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"memo":{"description":"Additional information.","type":"string"},"quantity_can_build":{"description":"Indicates the number of this assembly that can be built from the parts on hand.","type":"number"},"quantity_on_hand":{"description":"The number of these items in inventory. `quantity_on_hand` times AverageCost is TotalValue in an inventory item list. To change the `quantity_on_hand` for an item, you would have to use InventoryAdjustmentAdd not an ItemInventoryMod.","type":"number"},"quantity_on_sales_order":{"description":"The number of these items that have been sold (as recorded in sales orders) but not delivered to customers.","type":"number"},"quantity_to_build":{"description":"Specifies the number of assemblies to be built. The transaction will fail if the number specified here exceeds the number of on-hand components.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"BuildAssemblyRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"RawQBXMLResponseJSON":{"anyOf":[{"properties":{"data":{"description":"What QuickBooks returned, snake_cased, as an operation's `data` is: a list for a query, the record for an add or update."},"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.","type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"enum":["success","error"],"type":"string"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"One request","type":"object"},{"properties":{"responses":{"description":"One entry per request, in the order they were sent.","items":{"properties":{"data":{"description":"What QuickBooks returned, snake_cased, as an operation's `data` is: a list for a query, the record for an add or update."},"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.","type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"request":{"description":"The request's element name, such as `CustomerQueryRq`.","type":"string"},"request_id":{"description":"The request's `requestID`, or `null` when it had none.","type":["string","null"]},"status":{"description":"`success` or `error` for a request QuickBooks ran or refused; `not_processed` for one it skipped: with `stopOnError`, every request after the first that failed, which QuickBooks answers with 3231.","enum":["success","error","not_processed"],"type":"string"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["request","request_id","status"],"type":"object"},"type":"array"},"status":{"description":"`success` only when every entry is `success`.","enum":["success","error"],"type":"string"}},"required":["status","responses"],"title":"A batch","type":"object"}],"description":"QuBe Sync's summary of QuickBooks' answer. One request: the `{status, data}` summary an operation's `response_json` is. A batch: `{status, responses}`, one entry per request. What each QuickBooks status code means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no)."},"updateItemService_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"not":{"anyOf":[{"required":["sales_or_purchase","sales_and_purchase"]}]},"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_and_purchase":{"description":"A `sales_and_purchase` aggregate is used for items that are meant to be both purchased and sold, such as an “other charge” item that is reimbursable.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","properties":{"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"sales_or_purchase":{"description":"A `sales_or_purchase` aggregate is used for items that are meant to be either purchased or sold, but not both. For example, a `sales_or_purchase` aggregate would be used for a non-inventory item that is purchased but not sold, or for a service item that is sold but not purchased.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","not":{"anyOf":[{"required":["price","price_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"price":{"description":"The purchase price or sales price of this item.\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"},"price_percent":{"description":"The price expressed as a percent. (For example, an auto shop that calculates the cost of labor as a percentage of the cost of parts might have a service item called “Labor” that uses `price_percent` instead of Price.)\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"ItemServiceRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listCustomers_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"mobile":{"type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"job_projected_end_date":{"description":"The date on which work for a sub-customer is expected to be complete; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","format":"date","type":"string"},"delivery_method":{"enum":["Email","Fax","Print"],"type":"string"},"fax":{"description":"Fax number.","type":"string"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"ship_to_address":{"items":{"properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"default_ship_to":{"description":"Flag that address is the default ship to address.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"type":"array"},"preferred_payment_method_ref":{"description":"Refers to a PaymentMethod object. In a request, if a `preferred_payment_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"alt_contact":{"description":"The name of an alternate contact person for a vendor, customer, or “other name” entry.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"job_status":{"description":"`job_status` Status information about a sub-customer; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","enum":["Awarded","Closed","InProgress","None","NotAwarded","Pending"],"type":"string"},"customer_type_ref":{"description":"Customer types allow business owners to categorize customers in ways that are meaningful for their businesses. For example, a customer type might indicate which industry a customer represents, or which part of the country a customer is in. A `customer_type_ref` aggregate refers to one of the types on the CustomerType list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"job_start_date":{"description":"The date on which work for a sub-customer was started; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","format":"date","type":"string"},"credit_limit":{"description":"Set and returned as a positive number that indicates a customer’s or vendor’s credit limit. If no value has been defined, there is no credit limit.","type":"number"},"bill_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"additional_notes_ret":{"items":{"properties":{"date":{"description":"The date the note was updated.","format":"date","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"note_id":{"description":"The ID of the note.","type":"integer"}},"type":"object"},"type":"array"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"email":{"description":"E-mail address.","type":"string"},"credit_card_info":{"description":"Customer’s credit-card information.","properties":{"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"}},"type":"object"},"contacts_ret":{"items":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_statement_with_parent":{"type":"boolean"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"phone":{"description":"The telephone number.","type":"string"},"job_desc":{"description":"A short job description for a sub-customer; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","type":"string"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"job_type_ref":{"description":"Job type can be used to separate jobs into any categories that are meaningful to the business. A `job_type_ref` aggregate refers to a job type on the JobType list. In a request, if a `job_type_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"balance":{"description":"A positive number indicates money owed by the customer. Compare with `total_balance`.","type":"number"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"print_as":{"type":"string"},"total_balance":{"description":"Total balance for this customer, including all this customer’s jobs (subcustomers). A positive number indicates money that the customer owes. If a customer doesn’t have any subcustomers, `total_balance` and Balance are the same.","type":"number"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"cc":{"description":"Email address that would be carbon copied or CC.","type":"string"},"suffix":{"type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_country":{"description":"The country that sales tax is collected for.","enum":["Australia","Canada","UK","US"],"type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"job_end_date":{"description":"The date on which work for a sub-customer was completed; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","format":"date","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"pager":{"type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_registration_number":{"description":"The tax registration number used in CA and UK.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"resale_number":{"description":"The customer’s resale number, if they have one. This number won’t affect reports or sales tax calculations.","type":"string"},"notes":{"description":"Not supported.","type":"string"},"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"},"preferred_delivery_method":{"description":"Preference for how invoices are delivered.","enum":["Email","Fax","None"],"type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listCreditMemos_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"discount_line_ret":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"is_taxable":{"type":"boolean"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"credit_memo_line_group_ret":{"description":"Represents a previously defined group of lines in the credit memo. Compare with CreditMemoLine, which represents just one line in the credit memo.\n\n`credit_memo_line_ret` and `credit_memo_line_group_ret` combine: any number of each.","items":{"properties":{"credit_memo_line_ret":{"description":"Represents one line in the credit memo. Compare with CreditMemoGroupLine, which represents a previously defined group of lines in the credit memo.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"total_amount":{"description":"Subtotal plus `sales_tax_total`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"sales_tax_percentage":{"description":"The percentage charged for sales tax.","type":"number"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"is_pending":{"description":"If `is_pending` is set to true, the credit memo hasn’t been completed. Within QuickBooks, you can change the `is_pending` status for a credit memo by choosing “Mark Credit Memo As Pending” or “Mark Credit Memo As Final” from the Edit menu.","type":"boolean"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bill_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"credit_remaining_in_home_currency":{"description":"The amount of the remaining credit, expressed in units of the current home currency.","type":"number"},"subtotal":{"description":"The total of all the credit-memo lines, before taxes are applied. (By contrast, a subtotal item (an ItemSubtotal object) gives only the total of the amounts in the lines that appear above it.)","type":"number"},"sales_tax_total":{"description":"The total amount of sales tax charged.","type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_line_ret":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"credit_remaining":{"description":"Available credit.","type":"number"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"po_number":{"description":"Purchase order number.","type":"string"},"shipping_line_ret":{"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"}},"type":"object"},"credit_memo_line_ret":{"description":"Represents one line in the credit memo. Compare with CreditMemoGroupLine, which represents a previously defined group of lines in the credit memo.\n\n`credit_memo_line_ret` and `credit_memo_line_group_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"The memo doesn’t print on the credit memo, but does appear in the account register and the customer register.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"total_amount":{"description":"Subtotal plus `sales_tax_total`.","type":"number"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listPayrollDetailReports_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"col_desc":{"items":{"properties":{"col_id":{"description":"An identifying number that corresponds to the position of this column in the report. The columns are numbered from left to right, starting with 1.","type":"integer"},"col_title":{"items":{"type":"string"},"type":"array"},"col_type":{"description":"The type of data that this column contains. `col_type` values are formatted types. (Returned ctPercent values, for example, will have digits after the decimal points, and ctAddr1 values will be strings.)","enum":["Account","Addr1","Addr2","Addr3","Addr4","Addr5","Aging","Amount","AmountDifference","AverageCost","BilledDate","BillingStatus","Blank","CalculatedAmount","Class","ClearedStatus","CostPrice","CreateDate","Credit","CustomField","Date","Debit","DeliveryDate","DueDate","Duration","EarliestReceiptDate","EstimateActive","FOB","IncomeSubjectToTax","Invoiced","IsAdjustment","Item","ItemDesc","ItemVendor","Label","LastModifiedBy","LatestOrPriorState","Memo","ModifiedTime","Name","NameAccountNumber","NameAddress","NameCity","NameContact","NameEmail","NameFax","NamePhone","NameState","NameZip","OpenBalance","OriginalAmount","PONumber","PaidAmount","PaidStatus","PaidThroughDate","PaymentMethod","PayrollItem","Percent","PercentChange","PercentOfTotalRetail","PercentOfTotalValue","PhysicalCount","PrintStatus","ProgressAmount","ProgressPercent","Quantity","QuantityAvailable","QuantityOnHand","QuantityOnOrder","QuantityOnPendingBuild","QuantityOnSalesOrder","ReceivedQuantity","RefNumber","ReorderPoint","RetailValueOnHand","RunningBalance","SONumber","SSNOrTaxID","SalesPerWeek","SalesRep","SalesTaxCode","ShipDate","ShipMethod","ShipToAddr1","ShipToAddr2","ShipToAddr3","ShipToAddr4","ShipToAddr5","SourceName","SplitAccount","SuggestedReorder","TaxLine","TaxTableVersion","Terms","Total","TxnID","TxnNumber","TxnType","UnitPrice","UserEdit","ValueOnHand","WageBase","WageBaseTips"],"type":"string"},"data_type":{"description":"The data type: IDTYPE, STRTYPE, and so on.","enum":["AMTTYPE","BOOLTYPE","DATETIMETYPE","DATETYPE","ENUMTYPE","GUIDTYPE","IDTYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STRTYPE","TIMEINTERVALTYPE"],"type":"string"}},"type":"object"},"type":"array"},"num_col_title_rows":{"description":"The number of rows to allocate for column titles. Although this number is usually 1, with some reports it is 2 or 3. (For an example of column titles that span multiple rows, look at a ProfitAndLossByJob report in QuickBooks.)","type":"integer"},"num_columns":{"description":"The number of columns in the report.","type":"integer"},"num_rows":{"description":"The number of rows in the report.","type":"integer"},"report_basis":{"description":"If `report_basis` is rbCash, the report bases income and expenses on the dates when money changed hands.rbAccrual, the report bases income on the dates when customers were invoiced and bases expenses on the dates when bills were entered.rbNone, the report uses the default `report_basis`, which is either the QuickBooks Preference setting or the QuickBooks default for a given type of report.","enum":["Accrual","Cash","None"],"type":"string"},"report_data":{"description":"If the report contains any data, it is given row-by-row in a `report_data` aggregate.","properties":{"data_row":{"description":"A data row contains the actual data for each column.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"subtotal_row":{"description":"A row that contains a calculated subtotal of the data in all the rows since the last SubTotalRow and, usually, a single underline. There can be multiple SubTotalRow aggregates in a report.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"text_row":{"description":"A text row contains only text and is used mainly for headings.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"type":"string"},"type":"array"},"total_row":{"description":"A row that contains a calculated total of all the data that has come before and a double underline. There will only be one `total_row` per report. If `total_row` doesn’t include any numerical values, the columns required to show the total values aren’t part of the report. These columns weren’t included when the report was customized.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"}},"type":"object"},"report_subtitle":{"description":"The subtitle for this report.","type":"string"},"report_title":{"description":"The main title for this report.","type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateCurrency_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"as_of_date":{"description":"The date when the exchange rate was last changed.","format":"date","type":"string"},"currency_code":{"description":"For built-in currencies, the currency code and name is the generally accepted code and name. These are based on the standard ISO 4217 code/name for a country’s currency. In most cases, the currency code is composed of the country’s two-character Internet country code plus an extra character representing the currency unit.","type":"string"},"currency_format":{"description":"The aggregate controlling the appearance of the currency with regard to comma and decimal.","properties":{"decimal_places":{"description":"This enumerated value controls the display of the decimal value, for example, 1.00. The default is 2 which means 2 decimals are displayed to the right of the decimal point, but you can specify 0 (zero) if you don’t want’ decimals to be displayed.","enum":["0","2"],"type":"string"},"decimal_separator":{"description":"This enumerated value controls the display of the decimal point, for example, 1.00 or 1,00. The default is Period but you could alternatively specify a value of Comma.","enum":["Comma","Period"],"type":"string"},"thousand_separator":{"description":"This enumerated value controls how the thousandth’s place is separated from the next thousand, for example, 1,000,000. The default is Comma, as shown, but you can replace this with one of these values: Period, Space, Apostrophe .","enum":["Apostrophe","Comma","Period","Space"],"type":"string"},"thousand_separator_grouping":{"description":"This enumerated value controls how the display of the currency value is grouped, for example, 10,000,000. The default is XX_XXX_XXX but you could replace this with X_XX_XX_XXX","enum":["XX_XXX_XXX","X_XX_XX_XXX"],"type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at `as_of_date`. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_user_defined_currency":{"description":"Indicates whether the currency is a built-in currency (value here would be false) or a currency created by a QuickBooks user (value here would be true).","type":"boolean"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"CurrencyRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"ConnectionsList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Connection"},"type":"array"},"meta":{"properties":{"page":{"type":"integer"},"total_pages":{"type":"integer"}},"required":["page","total_pages"],"type":"object"}},"required":["data","meta"],"type":"object"},"updateSalesTaxCode_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"desc":{"description":"Desc gives a longer explanation of Name.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_taxable":{"description":"Indicates whether this sales-tax code is tracking taxable sales. For any particular sales-tax code, `is_taxable` can’t be modified once the sales-tax code has been used in a transaction. If the “Do You Charge Sales Tax?” preference is set to Yes within QuickBooks, the default value of `is_taxable` is true.","type":"boolean"},"item_purchase_tax_ref":{"description":"For future use with international versions of QuickBooks.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Short name that will appear on sales forms to identify the tax status of an item. The Desc element gives a longer explanation of Name. Name must be unique, and it isn’t case-sensitive.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"SalesTaxCodeRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listBillingRates_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"not":{"anyOf":[{"required":["fixed_billing_rate","billing_rate_per_item_ret"]}]},"properties":{"billing_rate_per_item_ret":{"description":"Choose at most one of: `fixed_billing_rate`, or `billing_rate_per_item_ret`.","items":{"not":{"anyOf":[{"required":["custom_rate","custom_rate_percent"]},{"properties":{"custom_rate":false,"custom_rate_percent":false}}]},"properties":{"custom_rate":{"description":"The value specified here overrides the rate of the service item referenced in this aggregate (in the `item_ref`) with the rate you specify here. If instead you wanted a rate that is a percentage higher or lower than the service item rate, you wouldn’t use `custom_rate`, but you would use AdjustPercentage and AdjustBillingRateRelativeTo.\n\nChoose exactly one of: `custom_rate`, or `custom_rate_percent`.","type":"number"},"custom_rate_percent":{"description":"Using this field with BillingRateAdd will work only if the service item itself is set to a percentage, not to an amount. If you attempt to set the Billing Rate to a percentage for a service item that has an amount for the Rate, you will get an error. The kind of rate you have on the service item determines the kind of billing rate you may have on that item.\n\nChoose exactly one of: `custom_rate`, or `custom_rate_percent`.","type":"number"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"billing_rate_type":{"description":"Indicates whether the billing rate is a fixed rate or applies to specific service items.","enum":["FixedRate","PerItem"],"type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"fixed_billing_rate":{"description":"You use `fixed_billing_rate` if you want the rate to override all service items rates. Consequently, there is no need to specify any service items (and in fact you can’t specify them) if you use this element.\n\nChoose at most one of: `fixed_billing_rate`, or `billing_rate_per_item_ret`.","type":"number"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3120,3140,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","object_not_found","invalid_reference","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listTemplates_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"template_type":{"description":"The type of trasaction for which this template was defined.","enum":["BuildAssembly","CreditMemo","Estimate","Invoice","PurchaseOrder","SalesOrder","SalesReceipt"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listBillPaymentChecks_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"address":{"description":"If an address request fails, some combination of address fields might be too long. In a Check, BillPaymentCheck, or SalesTaxPaymentCheck message, Address is the address that will print on the check.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"amount_in_home_currency":{"description":"Amount in units of the home currency.","type":"number"},"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"applied_to_txn_ret":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"balance_remaining":{"description":"The outstanding balance on this transaction. For an invoice, that’s (Subtotal + SalesTaxTotal) + the invoice’s AppliedAmount, which comes back negative (observed on QuickBooks Enterprise 24.0).","type":"number"},"discount_account_ref":{"description":"Refers to the account where this discount is tracked. In a request, if a `discount_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"discount_amount":{"description":"Reduces the receivable amount.","type":"number"},"discount_class_ref":{"description":"Class reference used in the Discount object","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"bank_account_ref":{"description":"Refers to the account from which the funds are being drawn for this check, for example, Checking or Savings. If a `bank_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createDataExtDef_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"assign_to_object":{"items":{"enum":["ARRefundCreditCard","Account","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","Company","CreditCardCharge","CreditCardCredit","CreditMemo","Customer","Deposit","Employee","Estimate","InventoryAdjustment","Invoice","Item","ItemReceipt","JournalEntry","OtherName","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Vendor","VendorCredit"],"type":"string"},"type":"array"},"data_ext_format_string":{"description":"The string format required for the data extension.","type":"string"},"data_ext_id":{"description":"The ID of the data extension.","type":"integer"},"data_ext_list_require":{"description":"If `data_ext_list_require` is true, this data extension field is required to be entered in lists. The default value is false.","type":"boolean"},"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_txn_require":{"description":"If `data_ext_txn_require` is true, this data extension field is required to be entered in transaction. The default value is false.","type":"boolean"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"title":"DataExtDefRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3040,3070,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_amount","string_too_long","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateItemSalesTaxGroup_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"item_sales_tax_ref":{"items":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"type":"array"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"ItemSalesTaxGroupRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listItemAssembliesCanBuilds_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"item_inventory_assembly_ref":{"description":"An inventory assembly item is one that is assembled or manufactured from inventory items. The items and/or assemblies that make up the assembly are called components. For Premier, an assembly can have a maximum of 100 components. For Enterprise, the maximum is 500 components.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity_can_build":{"description":"Indicates the number of this assembly that can be built from the parts on hand.","type":"number"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3120,3140,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","object_not_found","invalid_reference","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"deleteDataExtDef_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and `data_ext_name`.","type":"string"},"time_deleted":{"description":"The time when this list or transaction object was deleted.","format":"date-time","type":"string"}},"title":"DataExtDefDelRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and `data_ext_name`.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3150,3160,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_delete` (3160): QuickBooks refused to delete the record.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","missing_element","cannot_delete","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createCreditCardCharge_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for `expense_line_add` it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"amount_in_home_currency":{"description":"Amount in units of the home currency.","type":"number"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for `expense_line_add` it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_ret":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If `item_line_add` doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If `item_line_add` doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the charge. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"CreditCardChargeRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updatePurchaseOrder_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"purchase_order_line_group_ret":{"description":"Represents a previously defined group of lines in the purchase order. Compare with PurchaseOrderLine, which represents just one line in the purchase order.\n\n`purchase_order_line_ret` and `purchase_order_line_group_ret` combine: any number of each.","items":{"properties":{"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"Description that appears on the purchase order for this line item.","type":"string"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_order_line_ret":{"description":"One line of the purchase order. Compare with PurchaseOrderLineGroup, which represents a previously defined group of lines in the purchase order.","items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"Description that appears on the purchase order for this line item.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_billed":{"description":"If `is_billed` is true, the tracked time has already been billed.","type":"boolean"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this purchase order has been closed, even if all the items haven’t been received or the sale hasn’t been cancelled. Once the purchase order is marked as closed, all the line items within it become closed as well. You can’t change `is_manually_closed` to false after the purchase order has been fully received.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)","type":"number"},"received_quantity":{"description":"The quantity that has been received against this purchase order.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unbilled_quantity":{"description":"The quantity that hasn’t been billed.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"total_amount":{"description":"The returned `total_amount` will be the total of the amounts in the purchase order lines and group lines.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"vendor_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or BillAddressBlock.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this purchase order has been closed, even if all the items haven’t been received or the sale hasn’t been cancelled. Once the purchase order is marked as closed, all the line items within it become closed as well. You can’t change `is_manually_closed` to false after the purchase order has been fully received.","type":"boolean"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the home currency.","type":"number"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"vendor_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"expected_date":{"description":"The date on which shipment is expected.","format":"date","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"ship_to_entity_ref":{"description":"Refers to a customer, vendor, employee, or person on the “other names” list to whom this order is to be shipped. If a `ship_to_entity_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_order_line_ret":{"description":"One line of the purchase order. Compare with PurchaseOrderLineGroup, which represents a previously defined group of lines in the purchase order.\n\n`purchase_order_line_ret` and `purchase_order_line_group_ret` combine: any number of each.","items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"Description that appears on the purchase order for this line item.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_billed":{"description":"If `is_billed` is true, the tracked time has already been billed.","type":"boolean"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this purchase order has been closed, even if all the items haven’t been received or the sale hasn’t been cancelled. Once the purchase order is marked as closed, all the line items within it become closed as well. You can’t change `is_manually_closed` to false after the purchase order has been fully received.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)","type":"number"},"received_quantity":{"description":"The quantity that has been received against this purchase order.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unbilled_quantity":{"description":"The quantity that hasn’t been billed.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"vendor_msg":{"description":"Message to be printed on a purchase order for the vendor to read.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"memo":{"description":"This can be included in reports, but it doesn’t appear on the printed purchase order.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"is_fully_received":{"description":"If `is_fully_received` is true, all the items in the purchase order have been received and none of them was closed manually.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"total_amount":{"description":"The returned `total_amount` will be the total of the amounts in the purchase order lines and group lines.","type":"number"}},"title":"PurchaseOrderRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createBillPaymentCreditCard_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"amount_in_home_currency":{"description":"Amount in units of the home currency.","type":"number"},"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"applied_to_txn_ret":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"balance_remaining":{"description":"The outstanding balance on this transaction. For an invoice, that’s (Subtotal + SalesTaxTotal) + the invoice’s `applied_amount`, which comes back negative (observed on QuickBooks Enterprise 24.0).","type":"number"},"discount_account_ref":{"description":"Refers to the account where this discount is tracked. In a request, if a `discount_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"discount_amount":{"description":"Reduces the receivable amount.","type":"number"},"discount_class_ref":{"description":"Class reference used in the Discount object","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"credit_card_account_ref":{"description":"Refers to the credit card account to which this payment is being charged. In a request, if a `credit_card_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"BillPaymentCreditCardRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listReceivePayments_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"applied_to_txn_ret":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"balance_remaining":{"description":"The outstanding balance on this transaction. For an invoice, that’s (Subtotal + SalesTaxTotal) + the invoice’s AppliedAmount, which comes back negative (observed on QuickBooks Enterprise 24.0).","type":"number"},"discount_account_ref":{"description":"Refers to the account where this discount is tracked. In a request, if a `discount_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"discount_amount":{"description":"Reduces the receivable amount.","type":"number"},"discount_class_ref":{"description":"Class reference used in the Discount object.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"memo":{"description":"The beginning of this memo will appear in reports that show details of this receive payment.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"total_amount":{"description":"Total amount of money received. For ReceivePaymentAdd, the sum of the PaymentAmount amounts (in the AppliedToTxnAdd aggregates that are included) can’t be greater than the `total_amount`, or you will receive an error.","type":"number"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the home currency.","type":"number"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"unused_credits":{"description":"The credit the customer still has, not yet applied to anything, as of when the payment is read: what its credit memos have left, plus the unused_payment of its other payments (never this one’s). A payment that applied no credit answers it too, and it falls to 0.00 once that credit is applied elsewhere (observed on QuickBooks Enterprise 24.0).","type":"number"},"unused_payment":{"description":"ReceivePaymentRet will include an unused payment in cases such as these:The sum of the PaymentAmount amounts is less than `total_amount`. A payment is received for the exact amount of an invoice, but a credit or a discount (or both) are set.","type":"number"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowTemplate":{"allOf":[{"$ref":"#/components/schemas/WorkflowTemplateSummary"},{"properties":{"definition":{"$ref":"#/components/schemas/WorkflowChart"}},"type":"object"}]},"listDateDrivenTerms_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"day_of_month_due":{"description":"The day of the month when full payment is due with no discount.","maximum":31,"minimum":1,"type":"integer"},"discount_day_of_month":{"description":"If the payment is made by this day of the month, then `discount_pct` applies.","maximum":31,"minimum":1,"type":"integer"},"discount_pct":{"description":"If payment is received by `discount_day_of_month`, then this discount will apply to the payment. `discount_pct` must be between 0 and 100.","type":"number"},"due_next_month_days":{"description":"Handles cases when an invoice or bill is issued close to its due date. If the invoice or bill is issued within this many days of the due date, payment isn’t due until the following month. For example, with a `day_of_month_due` of 15 and a `due_next_month_days` of 2, an invoice issued on May 13th wouldn’t be due until June 15th.","type":"integer"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createItemPayment_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"ItemPaymentRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateEstimate_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"sales_tax_percentage":{"description":"The percentage charged for sales tax.","type":"number"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the home currency.","type":"number"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"estimate_line_ret":{"description":"One line of this estimate. Compare with EstimateLineGroup, which represents a previously defined group of lines in the estimate. In a Mod request, you can add a new line by supplying a `txn_line_id` value of -1.\n\n`estimate_line_ret` and `estimate_line_group_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["markup_rate","markup_rate_percent"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"markup_rate":{"description":"The markup that will be passed on to the customer for this item on this estimate. Amount, quantity, rate, and markup are related in the following way: Amount = (Quantity \\* Rate) + amount of markup\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`.","type":"number"},"markup_rate_percent":{"description":"The markup (expressed as a percentage) that will be passed on to the customer for this item on this estimate. Amount, quantity, rate, and markup are related in the following way: Amount = (Quantity \\* Rate) + amount of markup\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`.","type":"number"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions: ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment). ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"estimate_line_group_ret":{"description":"Represents a previously defined group of lines in the estimate. Compare with EstimateLine, which represents just one line in the estimate.\n\n`estimate_line_ret` and `estimate_line_group_ret` combine: any number of each.","items":{"properties":{"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"estimate_line_ret":{"description":"One line of this estimate. Compare with EstimateLineGroup, which represents a previously defined group of lines in the estimate. In a Mod request, you can add a new line by supplying a `txn_line_id` value of -1.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["markup_rate","markup_rate_percent"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"markup_rate":{"description":"The markup that will be passed on to the customer for this item on this estimate. Amount, quantity, rate, and markup are related in the following way: Amount = (Quantity \\* Rate) + amount of markup\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`.","type":"number"},"markup_rate_percent":{"description":"The markup (expressed as a percentage) that will be passed on to the customer for this item on this estimate. Amount, quantity, rate, and markup are related in the following way: Amount = (Quantity \\* Rate) + amount of markup\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`.","type":"number"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Subtotal plus `sales_tax_total`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bill_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"subtotal":{"description":"The total of all the estimate lines before taxes are applied. (By contrast, a subtotal item (an ItemSubtotal object) gives only the total of the amounts in the lines that appear above it.)","type":"number"},"sales_tax_total":{"description":"The total amount of sales tax charged.","type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"po_number":{"description":"Purchase order number.","type":"string"},"memo":{"description":"Message that appears in reports, but not on the estimate.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"total_amount":{"description":"Subtotal plus `sales_tax_total`.","type":"number"}},"title":"EstimateRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateInventorySite_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"email":{"description":"E-mail address.","type":"string"},"fax":{"description":"Fax number.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_default_site":{"description":"If site is marked as default, this will be the site used if not specified.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_site_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a ParentRef aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"phone":{"description":"The telephone number.","type":"string"},"site_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in ShipAddressBlock or BillAddressBlock.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"site_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"site_desc":{"description":"Description of the site.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"InventorySiteRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createJournalEntry_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_adjustment":{"description":"When a change is an “adjustment,” the original information is retained, usually so an accountant can see the effects of the adjustment.","type":"boolean"},"is_amounts_entered_in_home_currency":{"description":"Flag that indicates the amount being entered is in the home currency.","type":"boolean"},"is_home_currency_adjustment":{"description":"Indicates whether the transaction is using a home currency or foreign currency.","type":"boolean"},"journal_credit_line":{"description":"If no amount is included in the first credit line (or debit line) of a journal entry in the QuickBooks user interface, then subsequent SDK queries on that JournalEntry object will fail XML validation.\n\n`journal_debit_line` and `journal_credit_line` combine: any number of each.","items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In `journal_credit_line` and `journal_debit_line` messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"journal_debit_line":{"description":"If no amount is included in the first debit line (or credit line) of a journal entry in the QuickBooks user interface, then subsequent SDK queries on that JournalEntry object will fail XML validation.\n\n`journal_debit_line` and `journal_credit_line` combine: any number of each.","items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In `journal_credit_line` and `journal_debit_line` messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"JournalEntryRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateCreditMemo_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"discount_line_ret":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"is_taxable":{"type":"boolean"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"credit_memo_line_group_ret":{"description":"Represents a previously defined group of lines in the credit memo. Compare with CreditMemoLine, which represents just one line in the credit memo.\n\n`credit_memo_line_ret` and `credit_memo_line_group_ret` combine: any number of each.","items":{"properties":{"credit_memo_line_ret":{"description":"Represents one line in the credit memo. Compare with CreditMemoGroupLine, which represents a previously defined group of lines in the credit memo.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"total_amount":{"description":"Subtotal plus `sales_tax_total`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"sales_tax_percentage":{"description":"The percentage charged for sales tax.","type":"number"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"is_pending":{"description":"If `is_pending` is set to true, the credit memo hasn’t been completed. Within QuickBooks, you can change the `is_pending` status for a credit memo by choosing “Mark Credit Memo As Pending” or “Mark Credit Memo As Final” from the Edit menu.","type":"boolean"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions: ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment). ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bill_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"credit_remaining_in_home_currency":{"description":"The amount of the remaining credit, expressed in units of the current home currency.","type":"number"},"subtotal":{"description":"The total of all the credit-memo lines, before taxes are applied. (By contrast, a subtotal item (an ItemSubtotal object) gives only the total of the amounts in the lines that appear above it.)","type":"number"},"sales_tax_total":{"description":"The total amount of sales tax charged.","type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_line_ret":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"credit_remaining":{"description":"Available credit.","type":"number"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"po_number":{"description":"Purchase order number.","type":"string"},"shipping_line_ret":{"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"}},"type":"object"},"credit_memo_line_ret":{"description":"Represents one line in the credit memo. Compare with CreditMemoGroupLine, which represents a previously defined group of lines in the credit memo.\n\n`credit_memo_line_ret` and `credit_memo_line_group_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"The memo doesn’t print on the credit memo, but does appear in the account register and the customer register.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"total_amount":{"description":"Subtotal plus `sales_tax_total`.","type":"number"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"}},"title":"CreditMemoRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateReceivePayment_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"applied_to_txn_ret":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"balance_remaining":{"description":"The outstanding balance on this transaction. For an invoice, that’s (Subtotal + SalesTaxTotal) + the invoice’s `applied_amount`, which comes back negative (observed on QuickBooks Enterprise 24.0).","type":"number"},"discount_account_ref":{"description":"Refers to the account where this discount is tracked. In a request, if a `discount_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"discount_amount":{"description":"Reduces the receivable amount.","type":"number"},"discount_class_ref":{"description":"Class reference used in the Discount object.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions: ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment). ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"memo":{"description":"The beginning of this memo will appear in reports that show details of this receive payment.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"total_amount":{"description":"Total amount of money received. For ReceivePaymentAdd, the sum of the `payment_amount` amounts (in the AppliedToTxnAdd aggregates that are included) can’t be greater than the `total_amount`, or you will receive an error.","type":"number"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the home currency.","type":"number"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"unused_credits":{"description":"The credit the customer still has, not yet applied to anything, as of when the payment is read: what its credit memos have left, plus the unused_payment of its other payments (never this one’s). A payment that applied no credit answers it too, and it falls to 0.00 once that credit is applied elsewhere (observed on QuickBooks Enterprise 24.0).","type":"number"},"unused_payment":{"description":"ReceivePaymentRet will include an unused payment in cases such as these: The sum of the `payment_amount` amounts is less than `total_amount`. A payment is received for the exact amount of an invoice, but a credit or a discount (or both) are set.","type":"number"}},"title":"ReceivePaymentRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listDataExtDefs_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"assign_to_object":{"items":{"enum":["ARRefundCreditCard","Account","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","Company","CreditCardCharge","CreditCardCredit","CreditMemo","Customer","Deposit","Employee","Estimate","InventoryAdjustment","Invoice","Item","ItemReceipt","JournalEntry","OtherName","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Vendor","VendorCredit"],"type":"string"},"type":"array"},"data_ext_format_string":{"description":"The string format required for the data extension.","type":"string"},"data_ext_id":{"description":"The ID of the data extension.","type":"integer"},"data_ext_list_require":{"description":"If `data_ext_list_require` is true, this data extension field is required to be entered in lists. The default value is false.","type":"boolean"},"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_txn_require":{"description":"If `data_ext_txn_require` is true, this data extension field is required to be entered in transaction. The default value is false.","type":"boolean"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowChartTransitionList":{"items":{"$ref":"#/components/schemas/WorkflowChartTransition"},"minItems":1,"type":"array"},"updateLead_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"lead_contacts_ret":{"items":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"is_primary_contact":{"description":"Flag for if this is a primary contact on a lead.","type":"boolean"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"lead_contact_id":{"description":"`lead_contact_id` is a way to identify a lead contact object. When a lead contact object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a `lead_contact_id`.","type":"integer"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"}},"type":"object"},"type":"array"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"locations_ret":{"items":{"properties":{"lead_address":{"description":"Address for the lead.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"location":{"description":"Where the asset is located or has been placed into service.","type":"string"},"location_id":{"description":"`location_id` is a way to identify a location object. When a location object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a `location_id`.","type":"integer"},"main_address":{"description":"Main address for the lead.","type":"string"}},"type":"object"},"type":"array"},"main_phone":{"description":"The main phone number.","type":"string"},"status":{"description":"The status of the lead.","enum":["Cold","Hot","Warm"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"LeadRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateTxnDisplay_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateBillPaymentCheck_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"address":{"description":"If an address request fails, some combination of address fields might be too long. In a Check, BillPaymentCheck, or SalesTaxPaymentCheck message, Address is the address that will print on the check.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"amount_in_home_currency":{"description":"Amount in units of the home currency.","type":"number"},"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"applied_to_txn_ret":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"balance_remaining":{"description":"The outstanding balance on this transaction. For an invoice, that’s (Subtotal + SalesTaxTotal) + the invoice’s `applied_amount`, which comes back negative (observed on QuickBooks Enterprise 24.0).","type":"number"},"discount_account_ref":{"description":"Refers to the account where this discount is tracked. In a request, if a `discount_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"discount_amount":{"description":"Reduces the receivable amount.","type":"number"},"discount_class_ref":{"description":"Class reference used in the Discount object","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"bank_account_ref":{"description":"Refers to the account from which the funds are being drawn for this check, for example, Checking or Savings. If a `bank_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"BillPaymentCheckRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createCheck_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for `expense_line_add` it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"address":{"description":"If an address request fails, some combination of address fields might be too long. In a Check, BillPaymentCheck, or SalesTaxPaymentCheck message, Address is the address that will print on the check.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines. If a CheckAdd request doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate the Amount based on a Quantity of 1 and the suggested Cost.","type":"number"},"amount_in_home_currency":{"description":"Amount in units of the home currency.","type":"number"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for `expense_line_add` it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines. If a CheckAdd request doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate the Amount based on a Quantity of 1 and the suggested Cost.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"The memo that is printed on the check itself.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"item_group_line_ret":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If `item_line_add` doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines. If a CheckAdd request doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate the Amount based on a Quantity of 1 and the suggested Cost.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If `item_line_add` doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines. If a CheckAdd request doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate the Amount based on a Quantity of 1 and the suggested Cost.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"linked_txn":{"items":{"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines. If a CheckAdd request doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate the Amount based on a Quantity of 1 and the suggested Cost.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date written on the check. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines. If a CheckAdd request doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate the Amount based on a Quantity of 1 and the suggested Cost.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"The memo that is printed on the check itself.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date written on the check. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"CheckRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listBarCodes_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"list_type":{"description":"The type of list.","enum":["Account","Class","Customer","CustomerMsg","CustomerType","DateDrivenTerms","Employee","ItemDiscount","ItemFixedAsset","ItemGroup","ItemInventory","ItemInventoryAssembly","ItemNonInventory","ItemOtherCharge","ItemPayment","ItemSalesTax","ItemSalesTaxGroup","ItemService","ItemSubtotal","JobType","OtherName","PaymentMethod","PriceLevel","SalesRep","SalesTaxCode","ShipMethod","StandardTerms","ToDo","Vendor","VendorType"],"type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"NameIndexWebhookPayload":{"description":"The body QuBe Sync POSTs to the `webhook_url` an opt-in gave (`POST /connections/{connection_id}/name-index`), signed with `X-QUBE-Signature` like every other QuBe Sync webhook, once the build it was waiting for ends. It says where the index stands, never what's in it.","example":{"app_id":"98f339a4-32e8-424a-987e-ccaf5bcaa620","connection_id":"3f9c2a71-5d4e-4b8a-9c1f-7e2d6a5b8c90","event":"name_index.ready","name_index":{"as_of":"2026-10-11T14:02:10Z","records":1240,"state":"ready"},"sandbox":true,"timestamp":1792764130},"properties":{"app_id":{"format":"uuid","type":"string"},"connection_id":{"format":"uuid","type":"string"},"event":{"description":"`name_index.ready`: every list is in, and matches are answered. `name_index.failed`: the build gave up, after QuickBooks' answers to one step were lost three times in a row (the session ended, or the Web Connector reported an error). Matching is refused while the index is `building`; QuBe Sync starts the build again a day later while the connection is matching, or at the next match or opt-in.","enum":["name_index.ready","name_index.failed"],"type":"string"},"name_index":{"$ref":"#/components/schemas/NameIndex"},"sandbox":{"type":"boolean"},"timestamp":{"description":"Unix seconds; also the `t=` in the signature header.","type":"integer"}},"required":["event","timestamp","app_id","sandbox","connection_id","name_index"],"type":"object"},"updateItemGroup_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"item_group_line":{"items":{"properties":{"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"special_item_type":{"description":"Identifies the type of special item. See type for possible enum values.","enum":["FinanceCharge","ReimbursableExpenseGroup","ReimbursableExpenseSubtotal"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"ItemGroupRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateItemInventoryAssembly_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"average_cost":{"description":"`average_cost` is the total value of this item divided by `quantity_on_hand`. Initially the total value is the same as the `quantity_on_hand` times the `purchase_cost` (so `average_cost` equals `purchase_cost`). However, the total value can be changed by an inventory adjustment so that it no longer matches `quantity_on_hand` times `purchase_cost`.","type":"number"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"quantity_on_sales_order":{"description":"The number of these items that have been sold (as recorded in sales orders) but not delivered to customers.","type":"number"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"item_inventory_assembly_line":{"items":{"properties":{"item_inventory_ref":{"description":"An inventory item is any merchandise or part that a business purchases, tracks as inventory, and then resells. In QuickBooks, information about an inventory item is grouped into three categories:Puchase Information includes `purchase_desc`, `purchase_cost`, `cogs_account_ref`, and `pref_vendor_ref`. Sales Information includes `sales_desc`, `sales_price`, and `sales_tax_code_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"}},"type":"object"},"type":"array"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_price":{"description":"Price charged for this item.","type":"number"},"quantity_on_order":{"description":"The number of these items that have been ordered from vendors (as recorded in purchase orders) but not received.","type":"number"},"quantity_on_hand":{"description":"The number of these items in inventory. `quantity_on_hand` times `average_cost` is TotalValue in an inventory item list. To change the `quantity_on_hand` for an item, you would have to use InventoryAdjustmentAdd not an ItemInventoryMod.","type":"number"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"build_point":{"description":"The build notification point. The QuickBooks user will receive a notification when `quantity_on_hand` plus `quantity_on_order` falls below `build_point`.","type":"number"},"max":{"description":"Maximum number of items in inventory.","type":"number"},"asset_account_ref":{"description":"Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"cogs_account_ref":{"description":"Refers to the account that QuickBooks uses to track the original cost of goods that are eventually sold. (The AccountType of this account will be CostOfGoodsSold.) In a request, if a `cogs_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"ItemInventoryAssemblyRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createSpecialAccount_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"},"account_type":{"description":"The type of QuickBooks account. You can’t create or modify a non-posting account through the SDK, because QuickBooks creates these accounts behind the scenes. This means that you can’t send an AccountAdd request with an `account_type` of NonPosting.","enum":["AccountsPayable","AccountsReceivable","Bank","CostOfGoodsSold","CreditCard","Equity","Expense","FixedAsset","Income","LongTermLiability","NonPosting","OtherAsset","OtherCurrentAsset","OtherCurrentLiability","OtherExpense","OtherIncome"],"type":"string"},"balance":{"description":"Current balance of this account only (versus `total_balance`). Income accounts and balance sheet accounts don’t necessarily have balances.","type":"number"},"bank_number":{"description":"The bank account number or an identifying note about the account. If a `bank_number` exists in a QuickBooks company file, it will only be returned to applications that have been granted permission to access sensitive data and that are using SDK v2.0 or greater.","type":"string"},"cash_flow_classification":{"description":"Indicates how this account is classified for cash flow reporting. If the value is cfcNone, the account hasn’t been classified. If the value is cfcNotApplicable, the account doesn’t qualify to be classified. (For example, a bank account that tracks cash transactions isn’t part of a cash flow report.)","enum":["Financing","Investing","None","NotApplicable","Operating"],"type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"detail_account_type":{"enum":["AP","AR","AccumulatedAdjustment","AccumulatedAmortization","AccumulatedAmortizationOfOtherAssets","AccumulatedDepletion","AccumulatedDepreciation","AdvertisingOrPromotional","AllowanceForBadDebts","Amortization","Auto","BadDebts","BankCharges","Buildings","CashOnHand","CharitableContributions","Checking","CommonStock","CostOfLabor","CostOfLaborCOS","CreditCard","DepletableAssets","Depreciation","DevelopmentCosts","DiscountsOrRefundsGiven","DividendIncome","DuesAndSubscriptions","EmployeeCashAdvances","Entertainment","EntertainmentMeals","EquipmentRental","EquipmentRentalCOS","FederalIncomeTaxPayable","FurnitureAndFixtures","Goodwill","Insurance","InsurancePayable","IntangibleAssets","InterestEarned","InterestPaid","Inventory","InvestmentMortgageOrRealEstateLoans","InvestmentOther","InvestmentTaxExemptSecurities","InvestmentUSGovObligations","Land","LeaseBuyout","LeaseholdImprovements","LegalAndProfessionalFees","Licenses","LineOfCredit","LoanPayable","LoansToOfficers","LoansToOthers","LoansToStockholders","MachineryAndEquipment","MoneyMarket","NonProfitIncome","NotesPayable","OfficeOrGeneralAdministrativeExpenses","OpeningBalanceEquity","OrganizationalCosts","OtherCostsOfServiceCOS","OtherCurrentAssets","OtherCurrentLiab","OtherFixedAssets","OtherInvestmentIncome","OtherLongTermAssets","OtherLongTermLiab","OtherMiscExpense","OtherMiscIncome","OtherMiscServiceCost","OtherPrimaryIncome","OwnersEquity","PaidInCapitalOrSurplus","PartnerContributions","PartnerDistributions","PartnersEquity","PayrollClearing","PayrollExpenses","PayrollTaxPayable","PenaltiesAndSettlements","PreferredStock","PrepaidExpenses","PrepaidExpensesPayable","PromotionalMeals","RentOrLeaseOfBuildings","RentsHeldInTrust","RentsInTrustLiab","RepairAndMaintenance","Retainage","RetainedEarnings","SalesOfProductIncome","SalesTaxPayable","Savings","SecurityDeposits","ServiceOrFeeIncome","ShareholderNotesPayable","ShippingFreightAndDelivery","ShippingFreightAndDeliveryCOS","StateOrLocalIncomeTaxPayable","SuppliesAndMaterials","SuppliesAndMaterialsCOGS","TaxExemptInterest","TaxesPaid","Travel","TravelMeals","TreasuryStock","TrustAccounts","TrustAccountsLiab","UndepositedFunds","Utilities","Vehicles"],"type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_account":{"description":"Indicates whether the account is used for tax.","type":"boolean"},"last_check_number":{"type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"special_account_type":{"description":"If `special_account_type` returns a value, then QuickBooks automatically created this account when it was needed. Some special accounts can’t be overridden, because QuickBooks uses them exclusively for special purposes.","enum":["AccountsPayable","AccountsReceivable","CondenseItemAdjustmentExpenses","CostOfGoodsSold","DirectDepositLiabilities","Estimates","ExchangeGainLoss","InventoryAssets","ItemReceiptAccount","OpeningBalanceEquity","PayrollExpenses","PayrollLiabilities","PettyCash","PurchaseOrders","ReconciliationDifferences","RetainedEarnings","SalesOrders","SalesTaxPayable","UncategorizedExpenses","UncategorizedIncome","UndepositedFunds"],"type":"string"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"tax_line_info_ret":{"description":"If the QuickBooks user has associated a tax form with this company file, they can also associate each account in the company file with a line of that tax form. (To check which tax form, if any, is associated with this company file, do a CompanyQuery and check the returned TaxForm value.)","properties":{"tax_line_id":{"description":"An internal representation of the tax line associated with this account.","type":"integer"},"tax_line_name":{"description":"The name of the tax line associated with this account, as it appears on the tax form.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"total_balance":{"description":"The balance for this object and all its subordinate objects. For example, the `total_balance` for XYZ Bank would be the total of the balances of all its subaccounts (checking, savings, and so on). If XYZ Bank didn’t have any subaccounts, `total_balance` and Balance would be the same.","type":"number"}},"title":"AccountRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createItemDiscount_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"not":{"anyOf":[{"required":["discount_rate","discount_rate_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"discount_rate":{"description":"The discount rate when it is given as a monetary amount. `discount_rate` will be subtracted from a total or subtotal.\n\nChoose at most one of: `discount_rate`, or `discount_rate_percent`.","type":"number"},"discount_rate_percent":{"description":"The discount rate when it is given as a percent. `discount_rate_percent` will be subtracted from a total or subtotal.\n\nChoose at most one of: `discount_rate`, or `discount_rate_percent`.","type":"number"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"ItemDiscountRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateVehicle_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"desc":{"description":"A descriptive text field.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"VehicleRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createLead_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"lead_contacts_ret":{"items":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"is_primary_contact":{"description":"Flag for if this is a primary contact on a lead.","type":"boolean"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"lead_contact_id":{"description":"`lead_contact_id` is a way to identify a lead contact object. When a lead contact object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a `lead_contact_id`.","type":"integer"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"}},"type":"object"},"type":"array"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"locations_ret":{"items":{"properties":{"lead_address":{"description":"Address for the lead.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"location":{"description":"Where the asset is located or has been placed into service.","type":"string"},"location_id":{"description":"`location_id` is a way to identify a location object. When a location object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a `location_id`.","type":"integer"},"main_address":{"description":"Main address for the lead.","type":"string"}},"type":"object"},"type":"array"},"main_phone":{"description":"The main phone number.","type":"string"},"status":{"description":"The status of the lead.","enum":["Cold","Hot","Warm"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"LeadRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"recordPayment_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"applied_to_txn_ret":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"balance_remaining":{"description":"The outstanding balance on this transaction. For an invoice, that’s (Subtotal + SalesTaxTotal) + the invoice’s `applied_amount`, which comes back negative (observed on QuickBooks Enterprise 24.0).","type":"number"},"discount_account_ref":{"description":"Refers to the account where this discount is tracked. In a request, if a `discount_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"discount_amount":{"description":"Reduces the receivable amount.","type":"number"},"discount_class_ref":{"description":"Class reference used in the Discount object.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"memo":{"description":"The beginning of this memo will appear in reports that show details of this receive payment.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"total_amount":{"description":"Total amount of money received. For ReceivePaymentAdd, the sum of the `payment_amount` amounts (in the `applied_to_txn_add` aggregates that are included) can’t be greater than the `total_amount`, or you will receive an error.","type":"number"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the home currency.","type":"number"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"unused_credits":{"description":"The credit the customer still has, not yet applied to anything, as of when the payment is read: what its credit memos have left, plus the unused_payment of its other payments (never this one’s). A payment that applied no credit answers it too, and it falls to 0.00 once that credit is applied elsewhere (observed on QuickBooks Enterprise 24.0).","type":"number"},"unused_payment":{"description":"ReceivePaymentRet will include an unused payment in cases such as these:The sum of the `payment_amount` amounts is less than `total_amount`. A payment is received for the exact amount of an invoice, but a credit or a discount (or both) are set.","type":"number"}},"title":"ReceivePaymentRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"deleteTxn_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"title":"TxnDelType","type":"object"},{"title":"TxnID","type":"object"},{"title":"TimeDeleted","type":"object"},{"title":"RefNumber","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3150,3160,3161,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_delete` (3160): QuickBooks refused to delete the record.\n* `closing_date_delete` (3161): The transaction is dated on or before the company's closing date, which is password-protected.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","missing_element","cannot_delete","closing_date_delete","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateItemPayment_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"ItemPaymentRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listVehicleMileages_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"billable_amount":{"description":"In a billable vehicle mileage transaction, refers to the total charge that QuickBooks calculates by multiplying the trip total mileage by the rate specified in the item referenced by the `item_ref`.","type":"number"},"billable_rate":{"description":"In a billable vehicle mileage transaction, refers to the rate being used to charge mileage against a customer. The rate is specified in the service item or other charge item that is referenced in the `item_ref` field of the VehicleMileageAdd request.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"notes":{"description":"Additional information.","type":"string"},"odometer_end":{"description":"Odometer reading at the end of the trip. `odometer_start` and `odometer_end` must both be specified if `total_miles` isn’t specified. QuickBooks will calculate the total trip miles from these two values. If `total_miles` is specified, you can’t specify `odometer_start` and `odometer_end`.","type":"number"},"odometer_start":{"description":"Odometer reading at the start of the trip. `odometer_start` and `odometer_end` must both be specified if `total_miles` isn’t specified. QuickBooks will calculate the total trip miles from these two values. If `total_miles` is specified, you can’t specify `odometer_start` and `odometer_end`.","type":"number"},"standard_mileage_rate":{"description":"The mileage rate currently allowed by the tax authority (IRS) for vehicle expenses.","type":"number"},"standard_mileage_total_amount":{"description":"Amount calculated by multiplying the total trip miles in the current vehicle mileage transaction by the standard mileage rate currently in use.","type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"total_miles":{"description":"Total trip miles. If `total_miles` is specified, you can’t specify `odometer_start` and `odometer_end`. If you use `odometer_start` and `odometer_end` instead of `total_miles`, QuickBooks will calculate the total trip miles from these two values.","type":"number"},"trip_end_date":{"description":"Date the trip ended. If left blank, the current date at the time of transaction will be used. Notice that only dates are supported for vehicle mileage, so make sure you enter any datetime values with dates only, no time values. That is, 2002-02-02 will work for trip end date or start date, but 2002-02-02T12:20:20 won’t work.","format":"date","type":"string"},"trip_start_date":{"description":"Date the trip began. If left blank, the current date at the time of transaction will be used. Notice that only dates are supported for vehicle mileage, so make sure you enter any datetime values with dates only, no time values. That is, 2002-02-02 will work for trip end date or start date, but 2002-02-02T12:20:20 won’t work.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"vehicle_ref":{"description":"A vehicle for use in VehicleMileage transactions. Each vehicle name must be unique.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowUsage":{"description":"Derived from the chart; nothing here is stored or hand-written.","properties":{"child_outcomes":{"description":"Per `workflow` state, every outcome the workflow it calls declares. A called workflow's ending arrives as an ordinary `success` (a declared failure as `error`) with `response.outcome` naming it, so a state that does not branch on it carries on as though nothing unusual happened. Each has `state`, `workflow`, `outcome`, `kind` (`success` or `failure`), `description`, `handled_at` (the state, or the state enclosing it, that branches on this outcome; `root on.success` or `root on.error` when the chart's root does; null when nothing does) and `per_item` (true when the state runs once per item, so each element's ending arrives in `response.outcomes` instead). Empty when the workflow calls none, or none that is installed.","items":{"type":"object"},"type":"array"},"decision_flow":{"description":"How answering a question works, whatever the question: `asynchronous` (a run waits for an answer indefinitely); `delivery`, the `workflow_run.awaiting_input` webhook a question arrives in (`event`, where it is sent, `signature_header`, `answer_url`, the `payload` envelope, and `order`: how to match a webhook to your record by `reference` and put the run's bodies in order by `revision`); `answer`, the request that answers it (`method`, `path`, `auth`, a `body` template, `data_note`, `token_note` (why the body names the prompt's `token`) and `response`, plus, when the workflow asks anything, a `response_example` of answering its first question and an `error_example` of the 422 a wrong option gets); `poll`, reading the run instead of waiting for the webhook; `cancel`, stopping the run instead (its request, a `note` and its `errors`); `composed`, how a question asked by a workflow this one calls arrives (`applies` is true when this workflow has one); and `errors`, what the decisions endpoint can refuse an answer with (`status`, `code` and `meaning` each).","type":"object"},"decisions":{"description":"Every question the workflow may ask, including ones asked by workflows it calls (their ids are prefixed by the calling state). Each carries its `kind` (`decision` for a wait state's question, `conflict` for the prompt the engine asks when an update whose `on_conflict` is `ask` meets a stale edit sequence; those come after the wait states' and have id `conflict:<state>`), the message as authored (for a conflict, `when` says when it is asked), the options and their fields, a `webhook_example` of the payload it arrives in, one `answers` body per option, and `data`: per `prompt.data` key, where it comes from and an `example` of what it carries -- the record from the request that fills it when exactly one does, and a placeholder otherwise; for a conflict, a `description` of each key.","items":{"type":"object"},"type":"array"},"matches":{"description":"Every match state the workflow can look a record up by name from, including those of workflows it calls (their `state` is prefixed by the calling state): `state`, `leaf_state` and `workflow` (where it is), `in_child`, `kind` (the list it looks in, as the chart writes it: a kind such as `customer`, or a template), `description`, `refresh` (whether it refreshes the connection's name index from QuickBooks first: `true`, `false`, or the template that says), `exact_only` and `error_handled` (whether the workflow handles a match it can't ask; otherwise the run fails). Each raises `success` whatever it finds, with `response.data` the answer the matches endpoint gives -- `match` (`exact`, `strong`, `candidates` or `none`), `record`, `candidates`, `candidates_total`, `candidates_total_complete` and `index` -- with `index.state` `unavailable` (and no scores) when a standard connection answered from QuickBooks' own filters. No QuickBooks status codes. Empty when it matches nothing.","items":{"type":"object"},"type":"array"},"notifications":{"description":"Every notify state the workflow can send the app data from, including those of workflows it calls (their `state` is prefixed by the calling state): `name` (what the app routes on), `description`, `state` (the webhook's `state`, its path from the run), `leaf_state` and `workflow` (where it is, in the workflow that sends it), `sent_by_child`, `per_item_of` (the calling state that runs once per item, when it is sent from inside one; null otherwise), `error_handled` (whether the workflow handles it not being delivered; otherwise the run fails), `data_example` (what `data` carries, from the chart: a record's identifying fields where it sends a request's response, placeholders for what only exists mid-run) and `webhook_example`, the whole `workflow_run.notification` it arrives in. A run of a workflow with any must be started with a `webhook_url`. Empty when it sends none.","items":{"type":"object"},"type":"array"},"outcomes":{"description":"One entry per ending the run can reach: the successes, then the failures the workflow declares, then `failed`. Each has `outcome`, `kind` (`success` or `failure`), `description` and `from_states`, the states that lead there. A success carries `output_keys` and an `output_example`, and so does a declared failure with an output of its own: per key, its `values` when they are known (a key that is `${meta.outcome}` has the ending's own name), else `source`, the states whose responses feed it, with that operation's `shape` when there is one; `may_be_null` flags a key that may not be set. `completed` is listed only when something in the chart reaches it, or when the workflow declares no success of its own. A declared failure lists the `errors` it can carry; `failed` is always listed, with the messages this workflow can end with (`authored_errors`), the ones that carry a QuickBooks message or a called workflow's error through (`dynamic_errors`), and the engine's own (`engine_errors`).","items":{"type":"object"},"type":"array"},"per_item":{"description":"One entry per `workflow` state that runs once per element of a list: `state` (its path), `workflow` (the key it calls), `each` (the list, as the chart writes it), `as` (the name each element is bound to; `item` unless the state names another), `on_item_error` (`stop` or `continue`), `stop_on` (the called workflow's endings that end the loop at the element that ends in one, starting none after it; `[]` for none), and `sentence`, the same said in one sentence. Empty when nothing in the workflow runs once per item.","items":{"type":"object"},"type":"array"},"request_errors":{"description":"Per request state, the QuickBooks status codes its operation can raise and whether this workflow handles each one; `settle`, whether a request QuickBooks never answered is settled before the state raises anything; and `on_conflict`, for an update, what happens when the record changed after it was read (`ask`, `overwrite` or `fail`; null for anything that is not an update). A request state whose `operation` is a template (`${input.<name>.operation}`) is listed with `operation` null, `operation_template` the template and no codes, since the operation is decided when the run starts.","items":{"type":"object"},"type":"array"},"run_json_example":{"type":"object"},"start":{"description":"The request that starts a run: method, path, an example body, the input JSON Schema, and a note per declared input.","type":"object"},"states":{"description":"What each run state means, in lifecycle order.","items":{"type":"object"},"type":"array"},"webhooks":{"description":"The webhooks a run of this workflow sends, each with `event` and `when`: `workflow_run.awaiting_input`, `workflow_run.notification` when it has notify states, and the three endings.","items":{"type":"object"},"type":"array"},"workflow":{"description":"key, name, description and state: `draft` or `published` for a workflow, `template` for a shipped template read before it's installed.","type":"object"}},"type":"object"},"createUnitOfMeasureSet_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"base_unit":{"description":"The unit of measure in a unit of measure set by which quantities of an item are tracked, priced, etc. If the company file is enabled for single unit of measure per item, the base unit is the only unit that is available for transaction line items.","properties":{"abbreviation":{"description":"The is the short “identifier” for a unit of measure that shows up in transaction line items in the U/M field in the QuickBooks UI.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"}},"type":"object"},"default_unit":{"items":{"properties":{"unit":{"description":"In a related unit within a unit of measure set, the name you want the unit to have. This name is displayed in the QuickBooks as an available unit for the item, if the company is enabled for multiple units of measure per item.","type":"string"},"unit_used_for":{"description":"In a default unit of measure, this specifies whether the default is to be used for purchase line items, sales line items, or shipping lines.","enum":["Purchase","Sales","Shipping"],"type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"related_unit":{"items":{"properties":{"abbreviation":{"description":"The is the short “identifier” for a unit of measure that shows up in transaction line items in the U/M field in the QuickBooks UI.","type":"string"},"conversion_ratio":{"description":"Within a unit of measure set, in any of the related units in that set, this indicates how many base units are in the related unit. That is, if the base unit is “box”, and the related unit is “case” with a conversion ratio of 10, that means there are 10 boxes in a case.","type":"number"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"}},"type":"object"},"type":"array"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"unit_of_measure_type":{"description":"The type of the unit of measure. This can be one of the values you see in the QuickBooks UI when you create a new UOM set, such as Count, or it can be your own value, which in the UI you can specify by selecting “Other” then defining it.","enum":["Area","Count","Length","Other","Time","Volume","Weight"],"type":"string"}},"title":"UnitOfMeasureSetRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3040,3070,3100,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_amount","string_too_long","name_in_use","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateOtherName_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"},"alt_contact":{"description":"The name of an alternate contact person for a vendor, customer, or “other name” entry.","type":"string"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"email":{"description":"E-mail address.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"fax":{"description":"Fax number.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"notes":{"description":"Additional information.","type":"string"},"other_name_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"other_name_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"phone":{"description":"The telephone number.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"OtherNameRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateCharge_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"balance_remaining":{"description":"The outstanding balance on this transaction. For an invoice, that’s (Subtotal + SalesTaxTotal) + the invoice’s AppliedAmount, which comes back negative (observed on QuickBooks Enterprise 24.0).","type":"number"},"billed_date":{"description":"The date when the customer was billed for what is now being charged to their credit card. (`billed_date` is the same as the date listed on an invoice or, for a statement charge, the date entered in the Statement Date field when the statement was printed.)","format":"date","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_paid":{"description":"If `is_paid` is true, this transaction has been paid.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"Indicates the price of something.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"title":"ChargeRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowChartEventMap":{"additionalProperties":{"$ref":"#/components/schemas/WorkflowChartTransitionList"},"description":"Event name -> transitions. Request states raise success/error, compounds raise done, wait states raise the chosen option id, notify states raise success/error, match states raise success (response.data is the answer: match is exact, strong, candidates or none; record; candidates; candidates_total; candidates_total_complete; index) or error (its fields refused once rendered: invalid_match; or QuickBooks failing the fallback queries on a connection without a name index).","propertyNames":{"allOf":[{"$ref":"#/components/schemas/WorkflowChartIdentifier"},{"not":{"const":"always"}}]},"type":"object"},"createPayrollPriorPayment_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"amount":{"type":"number"},"edit_sequence":{"type":"string"},"is_affecting_accounts":{"type":"boolean"},"memo":{"type":"string"},"payroll_date":{"format":"date","type":"string"},"payroll_prior_payment_line_ret":{"items":{"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"amount":{"type":"number"},"memo":{"type":"string"},"payroll_item_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"ref_number":{"type":"string"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"txn_date":{"format":"date","type":"string"},"txn_id":{"type":"string"},"txn_number":{"type":"integer"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createEmployee_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"department":{"description":"The name of the department in the employment job details section.","type":"string"},"mobile":{"description":"Mobile telephone number.","type":"string"},"work_auth_expire_date":{"description":"Date the employee’s work authorization expires.","format":"date","type":"string"},"employee_type":{"description":"`employee_type` can affect payroll taxes for an employee. A statutory employee is a person who is defined as an employee by statute. Usually an owner or partner will be on the Other Names list, but if they are on the Employee list, their `employee_type` will be Owner.","enum":["Officer","Owner","Regular","Statutory"],"type":"string"},"disabled":{"description":"Is employee disabled?","enum":["No","Yes"],"type":"string"},"ssn":{"description":"Social security number. When you add an SSN value to an employee record, it doesn’t have to include dashes; for example, either 123-45-6789 or 123456789 would be valid.","type":"string"},"fax":{"description":"Fax number.","type":"string"},"hired_date":{"description":"An employee’s date of hire.","format":"date","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"employee_payroll_info":{"description":"Pay information for this employee.","not":{"anyOf":[{"required":["clear_earnings","earnings"]}]},"properties":{"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"clear_earnings":{"description":"If `clear_earnings` is set to true, the earnings will be deleted for this employee.\n\nChoose at most one of: `clear_earnings`, or `earnings`.","type":"boolean"},"earnings":{"description":"Choose at most one of: `clear_earnings`, or `earnings`.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"payroll_item_wage_ref":{"description":"Each payroll wage item describes and names a payment scheme, for example, Regular Pay or Overtime Pay. A `payroll_item_wage_ref` aggregate refers to one of these wage items. In a request, if a `payroll_item_wage_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"rate":{"description":"Indicates the price of something.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"}},"type":"object"},"type":"array"},"pay_period":{"description":"Indicates how often employees are paid. If you include a blank `pay_period` element in an EmployeeMod message, you’ll receive an error. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","enum":["Biweekly","Daily","Monthly","Quarterly","Semimonthly","Weekly","Yearly"],"type":"string"},"sick_hours":{"description":"Describes how “sick time” is accrued for this employee, along with how many sick hours the employee has accrued.","properties":{"accrual_period":{"description":"Indicates how an employee accrues time off. If you include a blank `accrual_period` element in an EmployeeMod message, you’ll receive an error. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","enum":["BeginningOfYear","EveryHourOnPaycheck","EveryPaycheck"],"type":"string"},"accrual_start_date":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the date on which sick leave or vacation hours in the current year began to accrue.","format":"date","type":"string"},"hours_accrued":{"description":"The number of hours that the employee will accrue per accrual period. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"},"hours_available":{"description":"The total number of hours currently available for the employee to use. If this value is empty, it will default to 0.","type":"string"},"hours_used":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the number of sick leave or vacation hours used in the current year.","type":"string"},"is_resetting_hours_each_new_year":{"description":"Indicates whether or not the hours accrued resets to zero at the beginning of the new year. If you include a blank `is_resetting_hours_each_new_year` element in an EmployeeMod message, you’ll receive an error.","type":"boolean"},"maximum_hours":{"description":"The maximum number of hours that the employee can accrue. (QuickBooks itself doesn’t enforce this limit, however. `hours_available` can be greater than `maximum_hours`.) The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"}},"type":"object"},"use_time_data_to_create_paychecks":{"description":"Indicates whether time data is used to create paychecks for this employee.","enum":["DoNotUseTimeData","NotSet","UseTimeData"],"type":"string"},"vacation_hours":{"description":"Describes how vacation time is accrued for this employee, along with how many vacation hours the employee has accrued.","properties":{"accrual_period":{"description":"Indicates how an employee accrues time off. If you include a blank `accrual_period` element in an EmployeeMod message, you’ll receive an error. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","enum":["BeginningOfYear","EveryHourOnPaycheck","EveryPaycheck"],"type":"string"},"accrual_start_date":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the date on which sick leave or vacation hours in the current year began to accrue.","format":"date","type":"string"},"hours_accrued":{"description":"The number of hours that the employee will accrue per accrual period. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"},"hours_available":{"description":"The total number of hours currently available for the employee to use. If this value is empty, it will default to 0.","type":"string"},"hours_used":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the number of sick leave or vacation hours used in the current year.","type":"string"},"is_resetting_hours_each_new_year":{"description":"Indicates whether or not the hours accrued resets to zero at the beginning of the new year. If you include a blank `is_resetting_hours_each_new_year` element in an EmployeeMod message, you’ll receive an error.","type":"boolean"},"maximum_hours":{"description":"The maximum number of hours that the employee can accrue. (QuickBooks itself doesn’t enforce this limit, however. `hours_available` can be greater than `maximum_hours`.) The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"}},"type":"object"}},"type":"object"},"part_or_full_time":{"description":"Full or Part time status of the employee.","enum":["FullTime","PartTime"],"type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"us_citizen":{"description":"Is employee a US citizen?","enum":["No","Yes"],"type":"string"},"us_veteran":{"description":"Is employee a US veteran?","enum":["No","Yes"],"type":"string"},"gender":{"description":"The gender of this employee.","enum":["Female","Male"],"type":"string"},"billing_rate_ref":{"description":"Billing rates are used to override the service item rate in a time transaction (TimeTrackingAdd) based on the employee or vendor performing the work. Billing rates are assigned to an employee or a vendor to specify overrides to service items.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"additional_notes_ret":{"items":{"properties":{"date":{"description":"The date the note was updated.","format":"date","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"note_id":{"description":"The ID of the note.","type":"integer"}},"type":"object"},"type":"array"},"description":{"description":"The description details in the employment job details section.","type":"string"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"A concatenation of `first_name`, `middle_name`, and `last_name`.","type":"string"},"email":{"description":"E-mail address.","type":"string"},"supervisor_ref":{"description":"The name of a customer, vendor, employee, or person on the “other names” list in the employment job details section.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pager_pin":{"description":"A personal identification number for this employee’s pager.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"military_status":{"description":"Military status if the employee is a US veteran.","enum":["Active","Reserve"],"type":"string"},"phone":{"description":"The telephone number.","type":"string"},"key_employee":{"description":"Is employee a key or critical employee.","enum":["No","Yes"],"type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"employee_address":{"description":"If an address request fails, some combination of address fields might be too long. If you use payroll, you must specify the employee’s city, state (or province), ZIP (or postal) code, and at least one line of the street address. (Note that the State element has restrictions when it’s used in the `employee_address` aggregate. For more information, click State in the table.)","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"type":"string"},"addr4":{"type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"When it appears in the `employee_address` aggregate, the State element acts like an ENUMTYPE with the following possible values: None, AA (military), AE (military), AK, AL, AP (military), AR, AZ, CA, CO, CT, DC, DE, FL, GA, HI, IA, ID, IL, IN, KS, KY, LA, MA, MD, ME, MI, MN, MO, MS, MT, NC, ND, NE, NH, NJ, NM, NV, NY, OH, OK, OR, PA, PR, RI, SC, SD, TN, TX, UT, VA, VT, WA, WI, WV, and WY.","type":"string"}},"type":"object"},"ethnicity":{"description":"Ethnicity of employee from AmericianIndian, Asian, Black, Hawaiian, Hispanic, White, TwoOrMoreRaces.","enum":["AmericianIndian","Asian","Black","Hawaiian","Hispanic","TwoOrMoreRaces","White"],"type":"string"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"print_as":{"description":"By default within QuickBooks, the `print_as` element is the same as the Name element.","type":"string"},"emergency_contacts":{"description":"Emergency Contact information for the employee.","properties":{"primary_contact":{"description":"Primary emergency contact information for the employee.","properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"},"relation":{"description":"Relationship of emergency contact information to the employee.","enum":["Brother","Daughter","Father","Friend","Mother","Other","Partner","Sister","Son","Spouse"],"type":"string"}},"type":"object"},"secondary_contact":{"description":"Secondary emergency contact information for the employee.","properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"},"relation":{"description":"Relationship of emergency contact information to the employee.","enum":["Brother","Daughter","Father","Friend","Mother","Other","Partner","Sister","Son","Spouse"],"type":"string"}},"type":"object"}},"type":"object"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"birth_date":{"description":"Date of birth.","format":"date","type":"string"},"released_date":{"description":"The date on which this person’s employment with the company ended.","format":"date","type":"string"},"suffix":{"type":"string"},"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"adjusted_service_date":{"description":"Adjusted service date for the employee.","format":"date","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"pager":{"description":"The pager number.","type":"string"},"target_bonus":{"description":"The target bonus amount in the employment job details section.","type":"number"},"exempt":{"description":"Exempt or Non-exempt status of the employee.","enum":["Exempt","NonExempt"],"type":"string"},"disability_desc":{"description":"Description of employee’s disablitily.","type":"string"},"original_hire_date":{"description":"Original hire date the employee was hired.","format":"date","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"on_file":{"description":"Is the employee’s I-9 on file?","enum":["No","Yes"],"type":"string"},"notes":{"description":"Additional information.","type":"string"},"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"}},"title":"EmployeeRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createCustomer_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"mobile":{"type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"job_projected_end_date":{"description":"The date on which work for a sub-customer is expected to be complete; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","format":"date","type":"string"},"delivery_method":{"enum":["Email","Fax","Print"],"type":"string"},"fax":{"description":"Fax number.","type":"string"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"ship_to_address":{"items":{"properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"default_ship_to":{"description":"Flag that address is the default ship to address.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"type":"array"},"preferred_payment_method_ref":{"description":"Refers to a PaymentMethod object. In a request, if a `preferred_payment_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"alt_contact":{"description":"The name of an alternate contact person for a vendor, customer, or “other name” entry.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"job_status":{"description":"`job_status` Status information about a sub-customer; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","enum":["Awarded","Closed","InProgress","None","NotAwarded","Pending"],"type":"string"},"customer_type_ref":{"description":"Customer types allow business owners to categorize customers in ways that are meaningful for their businesses. For example, a customer type might indicate which industry a customer represents, or which part of the country a customer is in. A `customer_type_ref` aggregate refers to one of the types on the CustomerType list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"job_start_date":{"description":"The date on which work for a sub-customer was started; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","format":"date","type":"string"},"credit_limit":{"description":"Set and returned as a positive number that indicates a customer’s or vendor’s credit limit. If no value has been defined, there is no credit limit.","type":"number"},"bill_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"additional_notes_ret":{"items":{"properties":{"date":{"description":"The date the note was updated.","format":"date","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"note_id":{"description":"The ID of the note.","type":"integer"}},"type":"object"},"type":"array"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"email":{"description":"E-mail address.","type":"string"},"credit_card_info":{"description":"Customer’s credit-card information.","properties":{"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"}},"type":"object"},"contacts_ret":{"items":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_statement_with_parent":{"type":"boolean"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"phone":{"description":"The telephone number.","type":"string"},"job_desc":{"description":"A short job description for a sub-customer; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","type":"string"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"job_type_ref":{"description":"Job type can be used to separate jobs into any categories that are meaningful to the business. A `job_type_ref` aggregate refers to a job type on the JobType list. In a request, if a `job_type_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"balance":{"description":"A positive number indicates money owed by the customer. Compare with `total_balance`.","type":"number"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"print_as":{"type":"string"},"total_balance":{"description":"Total balance for this customer, including all this customer’s jobs (subcustomers). A positive number indicates money that the customer owes. If a customer doesn’t have any subcustomers, `total_balance` and Balance are the same.","type":"number"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"cc":{"description":"Email address that would be carbon copied or CC.","type":"string"},"suffix":{"type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_country":{"description":"Country that sales tax is collected for.","enum":["Australia","Canada","UK","US"],"type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"job_end_date":{"description":"The date on which work for a sub-customer was completed; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","format":"date","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"pager":{"type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_registration_number":{"description":"Tax registration number used in CA and UK.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"resale_number":{"description":"The customer’s resale number, if they have one. This number won’t affect reports or sales tax calculations.","type":"string"},"notes":{"description":"Not supported.","type":"string"},"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"},"preferred_delivery_method":{"description":"Preference for how invoices are delivered.","enum":["Email","Fax","None"],"type":"string"}},"title":"CustomerRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createSalesRep_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"initial":{"description":"The initials of a sales representative’s name.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"sales_rep_entity_ref":{"description":"Refers to the sales representative’s full information on the Employee, Vendor, or OtherName list. In a request, if a `sales_rep_entity_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. Notice that you can’t supply a customer name here.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"SalesRepRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listEmployees_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"department":{"description":"The name of the department in the employment job details section.","type":"string"},"mobile":{"description":"Mobile telephone number.","type":"string"},"work_auth_expire_date":{"description":"Date the employee’s work authorization expires.","format":"date","type":"string"},"employee_type":{"description":"`employee_type` can affect payroll taxes for an employee. A statutory employee is a person who is defined as an employee by statute. Usually an owner or partner will be on the Other Names list, but if they are on the Employee list, their `employee_type` will be Owner.","enum":["Officer","Owner","Regular","Statutory"],"type":"string"},"disabled":{"description":"Is employee disabled?","enum":["No","Yes"],"type":"string"},"ssn":{"description":"Social security number. When you add an SSN value to an employee record, it doesn’t have to include dashes; for example, either 123-45-6789 or 123456789 would be valid.","type":"string"},"fax":{"description":"Fax number.","type":"string"},"hired_date":{"description":"An employee’s date of hire.","format":"date","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"employee_payroll_info":{"description":"Pay information for this employee.","not":{"anyOf":[{"required":["clear_earnings","earnings"]}]},"properties":{"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"clear_earnings":{"description":"If `clear_earnings` is set to true, the earnings will be deleted for this employee.\n\nChoose at most one of: `clear_earnings`, or `earnings`.","type":"boolean"},"earnings":{"description":"Choose at most one of: `clear_earnings`, or `earnings`.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"payroll_item_wage_ref":{"description":"Each payroll wage item describes and names a payment scheme, for example, Regular Pay or Overtime Pay. A `payroll_item_wage_ref` aggregate refers to one of these wage items. In a request, if a `payroll_item_wage_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"rate":{"description":"Indicates the price of something.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"}},"type":"object"},"type":"array"},"pay_period":{"description":"Indicates how often employees are paid. If you include a blank `pay_period` element in an EmployeeMod message, you’ll receive an error. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","enum":["Biweekly","Daily","Monthly","Quarterly","Semimonthly","Weekly","Yearly"],"type":"string"},"sick_hours":{"description":"Describes how “sick time” is accrued for this employee, along with how many sick hours the employee has accrued.","properties":{"accrual_period":{"description":"Indicates how an employee accrues time off. If you include a blank `accrual_period` element in an EmployeeMod message, you’ll receive an error. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","enum":["BeginningOfYear","EveryHourOnPaycheck","EveryPaycheck"],"type":"string"},"accrual_start_date":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the date on which sick leave or vacation hours in the current year began to accrue.","format":"date","type":"string"},"hours_accrued":{"description":"The number of hours that the employee will accrue per accrual period. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"},"hours_available":{"description":"The total number of hours currently available for the employee to use. If this value is empty, it will default to 0.","type":"string"},"hours_used":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the number of sick leave or vacation hours used in the current year.","type":"string"},"is_resetting_hours_each_new_year":{"description":"Indicates whether or not the hours accrued resets to zero at the beginning of the new year. If you include a blank `is_resetting_hours_each_new_year` element in an EmployeeMod message, you’ll receive an error.","type":"boolean"},"maximum_hours":{"description":"The maximum number of hours that the employee can accrue. (QuickBooks itself doesn’t enforce this limit, however. `hours_available` can be greater than `maximum_hours`.) The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"}},"type":"object"},"use_time_data_to_create_paychecks":{"description":"Indicates whether time data is used to create paychecks for this employee.","enum":["DoNotUseTimeData","NotSet","UseTimeData"],"type":"string"},"vacation_hours":{"description":"Describes how vacation time is accrued for this employee, along with how many vacation hours the employee has accrued.","properties":{"accrual_period":{"description":"Indicates how an employee accrues time off. If you include a blank `accrual_period` element in an EmployeeMod message, you’ll receive an error. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","enum":["BeginningOfYear","EveryHourOnPaycheck","EveryPaycheck"],"type":"string"},"accrual_start_date":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the date on which sick leave or vacation hours in the current year began to accrue.","format":"date","type":"string"},"hours_accrued":{"description":"The number of hours that the employee will accrue per accrual period. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"},"hours_available":{"description":"The total number of hours currently available for the employee to use. If this value is empty, it will default to 0.","type":"string"},"hours_used":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the number of sick leave or vacation hours used in the current year.","type":"string"},"is_resetting_hours_each_new_year":{"description":"Indicates whether or not the hours accrued resets to zero at the beginning of the new year. If you include a blank `is_resetting_hours_each_new_year` element in an EmployeeMod message, you’ll receive an error.","type":"boolean"},"maximum_hours":{"description":"The maximum number of hours that the employee can accrue. (QuickBooks itself doesn’t enforce this limit, however. `hours_available` can be greater than `maximum_hours`.) The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"}},"type":"object"}},"type":"object"},"part_or_full_time":{"description":"Full or Part time status of the employee.","enum":["FullTime","PartTime"],"type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"us_citizen":{"description":"Is employee a US citizen?","enum":["No","Yes"],"type":"string"},"us_veteran":{"description":"Is employee a US veteran?","enum":["No","Yes"],"type":"string"},"gender":{"description":"The gender of this employee.","enum":["Female","Male"],"type":"string"},"billing_rate_ref":{"description":"Billing rates are used to override the service item rate in a time transaction (TimeTrackingAdd) based on the employee or vendor performing the work. Billing rates are assigned to an employee or a vendor to specify overrides to service items.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"additional_notes_ret":{"items":{"properties":{"date":{"description":"The date the note was updated.","format":"date","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"note_id":{"description":"The ID of the note.","type":"integer"}},"type":"object"},"type":"array"},"description":{"description":"The description details in the employment job details section.","type":"string"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"A concatenation of `first_name`, `middle_name`, and `last_name`.","type":"string"},"email":{"description":"E-mail address.","type":"string"},"supervisor_ref":{"description":"The name of a customer, vendor, employee, or person on the “other names” list in the employment job details section.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pager_pin":{"description":"A personal identification number for this employee’s pager.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"military_status":{"description":"Military status if the employee is a US veteran.","enum":["Active","Reserve"],"type":"string"},"phone":{"description":"The telephone number.","type":"string"},"key_employee":{"description":"Is employee a key or critical employee.","enum":["No","Yes"],"type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"employee_address":{"description":"If an address request fails, some combination of address fields might be too long. If you use payroll, you must specify the employee’s city, state (or province), ZIP (or postal) code, and at least one line of the street address. (Note that the State element has restrictions when it’s used in the `employee_address` aggregate. For more information, click State in the table.)","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"type":"string"},"addr4":{"type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"When it appears in the `employee_address` aggregate, the State element acts like an ENUMTYPE with the following possible values: None, AA (military), AE (military), AK, AL, AP (military), AR, AZ, CA, CO, CT, DC, DE, FL, GA, HI, IA, ID, IL, IN, KS, KY, LA, MA, MD, ME, MI, MN, MO, MS, MT, NC, ND, NE, NH, NJ, NM, NV, NY, OH, OK, OR, PA, PR, RI, SC, SD, TN, TX, UT, VA, VT, WA, WI, WV, and WY.","type":"string"}},"type":"object"},"ethnicity":{"description":"Ethnicity of employee from AmericianIndian, Asian, Black, Hawaiian, Hispanic, White, TwoOrMoreRaces.","enum":["AmericianIndian","Asian","Black","Hawaiian","Hispanic","TwoOrMoreRaces","White"],"type":"string"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"print_as":{"description":"By default within QuickBooks, the `print_as` element is the same as the Name element.","type":"string"},"emergency_contacts":{"description":"Emergency Contact information for the employee.","properties":{"primary_contact":{"description":"Primary emergency contact information for the employee.","properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"},"relation":{"description":"Relationship of emergency contact information to the employee.","enum":["Brother","Daughter","Father","Friend","Mother","Other","Partner","Sister","Son","Spouse"],"type":"string"}},"type":"object"},"secondary_contact":{"description":"Secondary emergency contact information for the employee.","properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"},"relation":{"description":"Relationship of emergency contact information to the employee.","enum":["Brother","Daughter","Father","Friend","Mother","Other","Partner","Sister","Son","Spouse"],"type":"string"}},"type":"object"}},"type":"object"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"birth_date":{"description":"Date of birth.","format":"date","type":"string"},"released_date":{"description":"The date on which this person’s employment with the company ended.","format":"date","type":"string"},"suffix":{"type":"string"},"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"adjusted_service_date":{"description":"Adjusted service date for the employee.","format":"date","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"pager":{"description":"The pager number.","type":"string"},"target_bonus":{"description":"The target bonus amount in the employment job details section.","type":"number"},"exempt":{"description":"Exempt or Non-exempt status of the employee.","enum":["Exempt","NonExempt"],"type":"string"},"disability_desc":{"description":"Description of employee’s disablitily.","type":"string"},"original_hire_date":{"description":"Original hire date the employee was hired.","format":"date","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"on_file":{"description":"Is the employee’s I-9 on file?","enum":["No","Yes"],"type":"string"},"notes":{"description":"Additional information.","type":"string"},"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createAlert_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"alert_tag":{"type":"string"},"is_marked_done":{"type":"boolean"},"next_alert_date":{"format":"date","type":"string"},"owner_id":{"type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3040,3070,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_amount","string_too_long","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowChartState":{"allOf":[{"if":{"properties":{"type":{"const":"request"}},"required":["type"]},"then":{"oneOf":[{"required":["operation"]},{"required":["requests"]}],"properties":{"on_conflict":{"default":"ask","description":"For an update: what happens when QuickBooks says the record changed after it was read (a stale edit sequence, 3200). ask (the default) pauses the run with a conflict prompt carrying the diff, which the app answers with overwrite (optionally with different params) or keep; overwrite re-sends with the current edit sequence without asking; fail raises error 3200 with the diff under response.error.conflict for the chart to handle. An update may leave edit_sequence out: the engine reads the record first and fills it in, and that read is the baseline the diff is judged against.","enum":["ask","overwrite","fail"]},"operation":{"description":"A Semantic.Registry id, e.g. customer.query -- or a template that renders to one, such as \\${input.find.operation}, checked when the state is entered.","type":"string"},"page_size":{"default":100,"description":"Records per page, with `paginate`.","maximum":200,"minimum":1,"type":"integer"},"paginate":{"description":"Page through a query's results: the state raises `page` once per page (response.data that page's records, response.page its number from 1, response.more whether more follow), then `success` once every page is in (response.data the page set, response.count and response.pages its size). Only on a single `operation` that is a query (a create, update, delete or other operation has no results to page through, and one named by reference that renders to such fails the run before it is sent); `params` may not also set `iterator` or `max_returned`. A query QuickBooks does not iterate (the short lists such as account.query, the deleted-records queries, the company, preferences and host queries, the reports) is sent as it is and answers whole, which arrives as page 1 with `more` false, so a chart written for pages works over any query. Each handled page costs about two of a run's 500 transitions (fault transition_limit past them), so one run pages about 250 times: raise page_size, or split the job over runs.","type":"boolean"},"params":{"$ref":"#/components/schemas/WorkflowChartTemplate"},"qbxml_version":{"default":"16.0","type":"string"},"requests":{"items":{"properties":{"operation":{"type":"string"},"params":{"$ref":"#/components/schemas/WorkflowChartTemplate"}},"required":["operation"],"type":"object"},"minItems":1,"type":"array"},"settle":{"default":true,"description":"Whether a request QuickBooks never answered is settled before the state raises anything: the engine finds out whether it was applied (a list add by its full name, a transaction add by the external_guid it stamps on it, an update by reading the record back, a delete by its id) and raises success as if the answer had arrived, re-sends, or raises error with type unsettled and the candidates when only the app can tell. false raises error with type no_response at once, as a query does when re-sending fails. Either way a no_response carries response.error.reason, why it went unanswered (timed_out or connector_error: it was sent, so QuickBooks may have applied it; rejected: QuickBooks could not read it; withdrawn: the app withdrew it before it was sent; page_expired: a later page never fetched; too_large: QuickBooks ran it, but its answer was over QuBe Sync's size limit, so a query is not re-sent and a write is settled as a timed_out one is), and, for an add, response.error.external_guid, the GUID it was sent with, so a chart that does its own looking can recognise the record. An add is stamped with a GUID whether settling is on or off.","type":"boolean"}}}},{"if":{"properties":{"type":{"const":"wait"}},"required":["type"]},"then":{"properties":{"prompt":{"$ref":"#/components/schemas/WorkflowChartPrompt"}},"required":["prompt"]}},{"if":{"properties":{"type":{"const":"workflow"}},"required":["type"]},"then":{"not":{"anyOf":[{"required":["always"]},{"required":["params"]},{"required":["operation"]},{"required":["prompt"]}]},"properties":{"as":{"$ref":"#/components/schemas/WorkflowChartIdentifier","default":"item","description":"The name the current element is bound to under each: each.line when as is line.","not":{"enum":["index","count"]}},"each":{"description":"Run the child once per element of this list, one at a time and in order: a template that renders to a list, such as \\${input.lines}. The state then raises success with response.items, one entry per element in order: {index, name, outcome, and the element's output keys (record, ...) or error}, and response.counts: {total, failed, and one count per outcome}. response.data (the outputs alone), response.outcomes and response.errors are the same in parallel lists. An empty list raises success at once with response.items []. At most 200 elements.","type":["string","array"]},"input":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"Rendered against this run's context and passed to the child as its input. With `each`, rendered once per element, with each.\\<as>, each.index and each.count bound."},"item_name":{"description":"What names each element in response.items, rendered with each as the input is: \\${each.record.add.name}. Without it, an element is named by its output's record (full_name, else name), and not at all when it has none.","type":"string"},"on_item_error":{"default":"stop","description":"stop: the first child that fails raises error, with the elements so far in response.items. continue: a failed element is an entry of response.items with its error (and null in response.data), and the state still raises success; response.counts.failed says how many failed.","enum":["stop","continue"]},"stop_on":{"description":"Endings of the called workflow, such as [\"cancelled\"], that end the loop: the first element whose run ends in one of them is the last, and the elements after it never start -- no requests, no questions. The state then raises success with the outputs up to and including that element in response.data, their endings in response.outcomes, and response.stopped: {index, outcome}, which element ended the loop and how (absent when every element ran). Not a failure, which on_item_error decides; each name must be an outcome the called workflow declares, or completed.","items":{"$ref":"#/components/schemas/WorkflowChartIdentifier"},"minItems":1,"type":"array","uniqueItems":true},"workflow":{"description":"The key of another workflow of the same app to run as this step.","pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"}},"required":["workflow"]}},{"if":{"properties":{"type":{"const":"transform"}},"required":["type"]},"then":{"properties":{"always":{"$ref":"#/components/schemas/WorkflowChartTransitionList"},"assign":{"$ref":"#/components/schemas/WorkflowChartAssignMap","minProperties":1}},"required":["assign","always"]}},{"if":{"properties":{"type":{"const":"choice"}},"required":["type"]},"then":{"not":{"anyOf":[{"required":["assign"]},{"required":["entry"]},{"required":["exit"]}]},"properties":{"always":{"$ref":"#/components/schemas/WorkflowChartTransitionList"}},"required":["always"]}},{"if":{"properties":{"type":{"const":"compound"}},"required":["type"]},"then":{"properties":{"initial":{"$ref":"#/components/schemas/WorkflowChartIdentifier"},"states":{"$ref":"#/components/schemas/WorkflowChartStatesMap"}},"required":["initial","states"]}},{"if":{"properties":{"type":{"const":"final"}},"required":["type"]},"then":{"not":{"anyOf":[{"required":["on"]},{"required":["always"]}]}}},{"if":{"properties":{"type":{"const":"notify"}},"required":["type"]},"then":{"not":{"anyOf":[{"required":["url"]},{"required":["webhook_url"]},{"required":["operation"]},{"required":["params"]},{"required":["prompt"]},{"required":["workflow"]},{"required":["input"]},{"required":["each"]},{"required":["always"]}]},"properties":{"data":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"Any JSON, rendered as the state is entered and sent to the app as a workflow_run.notification webhook, to the webhook_url the run was started with (a run of a workflow that can send one is refused without it: 422 webhook_url_required, unless the state is optional). `response` here is the response of the event that entered the state -- on a paginated query's `page`, that page -- so `${response.data}` sends the page's records; a page set (a paginating query's `success`) cannot be sent. At most 4 MB once encoded. The run waits for the app's 2xx: then the state raises success with response.delivery_id (the same on every retry), response.seq (1, 2, ... in send order for the run) and response.attempts. Delivery is retried for about an hour (10 attempts); if none succeeds, or the data is over 4 MB, it raises error with response.error.type not_delivered or too_large."},"name":{"$ref":"#/components/schemas/WorkflowChartIdentifier","description":"What the app routes on, such as customers_page: the webhook's `name`."},"optional":{"description":"true: on a run started without a webhook_url, it sends nothing and raises success at once (response.status skipped), and it doesn't make starting a run need one. For data an app gets another way too, such as the ending's output.","type":"boolean"}},"required":["name","data"]}},{"if":{"properties":{"type":{"const":"match"}},"required":["type"]},"then":{"not":{"anyOf":[{"required":["operation"]},{"required":["requests"]},{"required":["params"]},{"required":["prompt"]},{"required":["workflow"]},{"required":["input"]},{"required":["data"]},{"required":["url"]},{"required":["webhook_url"]},{"required":["always"]},{"required":["paginate"]},{"required":["page_size"]},{"required":["settle"]},{"required":["on_conflict"]},{"required":["qbxml_version"]},{"required":["each"]}]},"properties":{"exact_only":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"Optional, true or false (or a template): with true the answer is exact or none."},"fields":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"Optional, for customer, vendor, employee, other_name and entity: an object of company_name, email, phone, account_number, city and postal_code (each a template; an employee has no company_name) to match on as well as the name. One that renders to nothing is left out."},"kind":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"The list to look in: customer, vendor, employee, other_name, entity (those four together, one name space), item (every item type), account, class, or another reference list a transaction names (standard_terms, date_driven_terms, sales_tax_code, payment_method, ship_method, price_level, customer_type, vendor_type, job_type, sales_rep, customer_msg); or a template that renders to one, such as \\${input.kind}."},"min_score":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"Optional: a number from 0.3 to 1.0 (or a template), this match's candidate threshold in place of 0.44. Not with exact_only."},"name":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"The record's own name, without its parent's: a template such as \\${input.name}. At most 255 characters once rendered."},"parent":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"Optional: the parent's full name or ListID, for a job (kind customer) or a sub-item (kind item), or another kind whose records have parents. With one, name has no colon. A template that renders to nothing, or a blank one, is left out."},"refresh":{"$ref":"#/components/schemas/WorkflowChartTemplate","description":"Optional, default true: refresh the connection's name index from QuickBooks first, the run waiting until it is in -- unless the last refresh finished less than a minute ago, when it matches at once, so the matches of one burst share a refresh (one already on its way is waited on). false matches the index as it stands (response.data.index.as_of says how current)."}},"required":["kind","name"]}}],"properties":{"description":{"type":"string"},"entry":{"$ref":"#/components/schemas/WorkflowChartAssignMap"},"exit":{"$ref":"#/components/schemas/WorkflowChartAssignMap"},"on":{"$ref":"#/components/schemas/WorkflowChartEventMap"},"type":{"enum":["request","wait","workflow","transform","choice","compound","final","notify","match"]},"ui":{"description":"Canvas bookkeeping, ignored by the engine. `x`/`y` place the state; `transitions` places the pill drawn for each of its transitions, keyed `\"<event>|<index>\"` -- the event and the transition's position within it, which is what identifies a transition. Free-form: anything here is presentation, and a chart with no `ui` at all lays itself out.","properties":{"transitions":{"additionalProperties":{"properties":{"x":{"type":"number"},"y":{"type":"number"}},"type":"object"},"description":"Pill positions, keyed \"\\<event>|\\<index>\".","type":"object"},"x":{"type":"number"},"y":{"type":"number"}},"type":"object"}},"required":["type"],"type":"object"},"listItemGroups_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"item_group_line":{"items":{"properties":{"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"special_item_type":{"description":"Identifies the type of special item. See type for possible enum values.","enum":["FinanceCharge","ReimbursableExpenseGroup","ReimbursableExpenseSubtotal"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listCreditCardCharges_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"amount_in_home_currency":{"description":"Amount in units of the home currency.","type":"number"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_ret":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the charge. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createCustomerMsg_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"CustomerMsgRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3040,3070,3100,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_amount","string_too_long","name_in_use","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateInvoice_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"discount_line_ret":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"is_taxable":{"type":"boolean"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"invoice_line_ret":{"description":"Represents one line in the invoice. Compare with InvoiceLineGroup, which represents a previously defined group of lines in the invoice.\n\n`invoice_line_ret` and `invoice_line_group_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"sales_tax_percentage":{"description":"The percentage charged for sales tax.","type":"number"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"is_paid":{"description":"If `is_paid` is true, this transaction has been paid.","type":"boolean"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"is_pending":{"description":"If `is_pending` is set to true, the invoice hasn’t been completed. Pending sales might include unpaid orders, estimates, tracked hours that haven’t yet been billed, or sales of back-ordered items.","type":"boolean"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions: ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment). ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the invoice. If you leave `txn_date` out of an InvoiceAdd message, QuickBooks might prefill it with the date of the invoice that was most recently saved.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"applied_amount":{"description":"The credits and payments applied to this invoice, as a negative number: -80.00 for an invoice paid 80.00 (observed on QuickBooks Enterprise 24.0).","type":"number"},"is_finance_charge":{"description":"If `is_finance_charge` is true, a finance-charge item has been added to the invoice.","type":"boolean"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"suggested_discount_amount":{"description":"The suggested discount for this invoice.","type":"number"},"bill_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"If `due_date` isn’t included in an InvoiceAdd request, QuickBooks might determine the due date according to the terms set for this customer.","format":"date","type":"string"},"subtotal":{"description":"The total of all the invoice lines, before taxes and `applied_amount` are applied. (By contrast, a subtotal item (an ItemSubtotal object) gives only the total of the amounts in the lines that appear above it.)","type":"number"},"sales_tax_total":{"description":"The total amount of sales tax charged.","type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_line_ret":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"po_number":{"description":"Purchase order number.","type":"string"},"shipping_line_ret":{"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"}},"type":"object"},"invoice_line_group_ret":{"description":"Represents a previously defined group of lines in the invoice. Compare with InvoiceLine, which represents just one line in the invoice.\n\n`invoice_line_ret` and `invoice_line_group_ret` combine: any number of each.","items":{"properties":{"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"invoice_line_ret":{"description":"Represents one line in the invoice. Compare with InvoiceLineGroup, which represents a previously defined group of lines in the invoice.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Message that appears in reports, but not on the invoice.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the invoice. If you leave `txn_date` out of an InvoiceAdd message, QuickBooks might prefill it with the date of the invoice that was most recently saved.","format":"date","type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"balance_remaining":{"description":"The outstanding balance on this transaction. For an invoice, that’s (Subtotal + `sales_tax_total`) + the invoice’s `applied_amount`, which comes back negative (observed on QuickBooks Enterprise 24.0).","type":"number"},"suggested_discount_date":{"description":"The date when `suggested_discount_amount` would apply.","format":"date","type":"string"},"balance_remaining_in_home_currency":{"description":"Balance remaining in units of the home currency.","type":"number"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"}},"title":"InvoiceRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateSalesRep_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"initial":{"description":"The initials of a sales representative’s name.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"sales_rep_entity_ref":{"description":"Refers to the sales representative’s full information on the Employee, Vendor, or OtherName list. In a request, if a `sales_rep_entity_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. Notice that you can’t supply a customer name here.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"SalesRepRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listItemDiscounts_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"not":{"anyOf":[{"required":["discount_rate","discount_rate_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"discount_rate":{"description":"The discount rate when it is given as a monetary amount. `discount_rate` will be subtracted from a total or subtotal.\n\nChoose at most one of: `discount_rate`, or `discount_rate_percent`.","type":"number"},"discount_rate_percent":{"description":"The discount rate when it is given as a percent. `discount_rate_percent` will be subtracted from a total or subtotal.\n\nChoose at most one of: `discount_rate`, or `discount_rate_percent`.","type":"number"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listItemReceipts_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"not":{"anyOf":[{"required":["ap_account_ref","liability_account_ref"]}]},"properties":{"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.\n\nChoose at most one of: `ap_account_ref`, or `liability_account_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_ret":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"liability_account_ref":{"description":"Refers to a liability account for this non-wage payroll item.\n\nChoose at most one of: `ap_account_ref`, or `liability_account_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the home currency.","type":"number"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createPayrollItemDirectDeposit_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"edit_sequence":{"type":"string"},"is_active":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"list_id":{"type":"string"},"name":{"type":"string"},"payroll_item_detail_type_value":{"type":"integer"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listItemOtherCharges_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"not":{"anyOf":[{"required":["sales_or_purchase","sales_and_purchase"]}]},"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_and_purchase":{"description":"A `sales_and_purchase` aggregate is used for items that are meant to be both purchased and sold, such as an “other charge” item that is reimbursable.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","properties":{"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"sales_or_purchase":{"description":"A `sales_or_purchase` aggregate is used for items that are meant to be either purchased or sold, but not both. For example, a `sales_or_purchase` aggregate would be used for a non-inventory item that is purchased but not sold, or for a service item that is sold but not purchased.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","not":{"anyOf":[{"required":["price","price_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"price":{"description":"The purchase price or sales price of this item.\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"},"price_percent":{"description":"The price expressed as a percent. (For example, an auto shop that calculates the cost of labor as a percentage of the cost of parts might have a service item called “Labor” that uses `price_percent` instead of Price.)\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"special_item_type":{"description":"Identifies the type of special item. See type for possible enum values.","enum":["FinanceCharge","ReimbursableExpenseGroup","ReimbursableExpenseSubtotal"],"type":"string"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listItemNonInventories_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"not":{"anyOf":[{"required":["sales_or_purchase","sales_and_purchase"]}]},"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_and_purchase":{"description":"A `sales_and_purchase` aggregate is used for items that are meant to be both purchased and sold, such as an “other charge” item that is reimbursable.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","properties":{"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"sales_or_purchase":{"description":"A `sales_or_purchase` aggregate is used for items that are meant to be either purchased or sold, but not both. For example, a `sales_or_purchase` aggregate would be used for a non-inventory item that is purchased but not sold, or for a service item that is sold but not purchased.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","not":{"anyOf":[{"required":["price","price_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"price":{"description":"The purchase price or sales price of this item.\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"},"price_percent":{"description":"The price expressed as a percent. (For example, an auto shop that calculates the cost of labor as a percentage of the cost of parts might have a service item called “Labor” that uses `price_percent` instead of Price.)\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listItemFixedAssets_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"acquired_as":{"description":"Indicates whether this item was new or used when the business acquired it.","enum":["New","Old"],"type":"string"},"asset_account_ref":{"description":"Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"asset_desc":{"description":"Description of the asset—maker, brand, and so on.","type":"string"},"asset_number":{"description":"The number used by the QuickBooks Fixed Asset Manager to identify this asset.","type":"string"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost_basis":{"description":"The total cost of the fixed asset. This can include the cost of improvements or repairs. This amount is used to figure depreciation.","type":"number"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"fixed_asset_sales_info":{"description":"Sales information, if this fixed asset was sold.","properties":{"sales_date":{"description":"Date when a fixed asset was sold.","format":"date","type":"string"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_expense":{"description":"Any expenses that were incurred during the sale of a fixed asset.","type":"number"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"location":{"description":"Where the asset is located or has been placed into service.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"notes":{"description":"Additional information.","type":"string"},"po_number":{"description":"Purchase order number.","type":"string"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_date":{"description":"The date when this asset was purchased.","format":"date","type":"string"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"serial_number":{"description":"The serial number of the asset.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"vendor_or_payee_name":{"description":"The name of the vendor from whom this asset was purchased.","type":"string"},"warranty_exp_date":{"description":"The date when the warranty for this asset expires.","format":"date","type":"string"},"year_end_accumulated_depreciation":{"description":"The amount the fixed asset has lost in value since it was purchased, as of the end of the year.","type":"number"},"year_end_book_value":{"description":"A reasonable estimate of the sales value of the fixed asset, as of the end of the year.","type":"number"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createInventoryAdjustment_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"inventory_adjustment_line_ret":{"items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]},{"required":["serial_number_added_or_removed","lot_number"]}]},"properties":{"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: the set (`serial_number`, `serial_number_added_or_removed`), or `lot_number`. Members of a set combine with each other, not with the other choices.","type":"string"},"quantity_difference":{"description":"Either a positive or negative number that shows the change in quantity for this inventory item.","type":"number"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: the set (`serial_number`, `serial_number_added_or_removed`), or `lot_number`. Members of a set combine with each other, not with the other choices.","type":"string"},"serial_number_added_or_removed":{"description":"Serial number that was added or removed from inventory.\n\nChoose at most one of: the set (`serial_number`, `serial_number_added_or_removed`), or `lot_number`. Members of a set combine with each other, not with the other choices.","enum":["Added","Removed"],"type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"value_difference":{"description":"Either a positive or negative number that shows a change in the total value of the entire stock of this inventory item.","type":"number"}},"type":"object"},"type":"array"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"InventoryAdjustmentRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowChartInputDeclaration":{"else":{"not":{"required":["operation"]}},"if":{"properties":{"type":{"const":"operation"}},"required":["type"]},"properties":{"body_of":{"$ref":"#/components/schemas/WorkflowChartInputSchema/properties/body_of","description":"On an object input that isn't a list: it is the body of the QuickBooks operation another input names, validated against that operation's params when the run starts, so a field the operation doesn't take is a 422 at the start (input.params: unknown parameter: \"customer_rf\"). {\"operation\": \"\\<input>\"} when that input holds an operation id (add_transaction's params, named by operation); {\"kind\": \"\\<input>\", \"action\": \"create\" | \"update\" | \"query\"} when it holds a kind (ensure's add, named by kind: \\<kind>.create). The input it names is a string input, not a list. Inside a schema, body_of goes on a property and names a property beside it. The typed starts the libraries generate (GET /api/v2/workflows/types) read it."},"description":{"type":"string"},"enum":{"description":"On a string input: the values a run may give it, checked when the run starts (add_transaction's operation lists the transaction adds). An object or array input says its values with schema.","items":{"type":"string"},"minItems":1,"type":"array"},"example":{"description":"An example value, in the input's own JSON type: a string, a number, an object, or for a list the whole list. It is what the usage contract's start body and the dashboard's Run drawer show. An operation input needs none: its example is built from the operation. Nor does a list of objects a workflow state runs through (each: ${input.<name>}): its example is one element of what that workflow takes."},"list":{"default":false,"description":"A list of what the rest of the declaration describes: with type operation, a list of that operation's bodies. The run input then takes an array, and each element is validated on its own.","type":"boolean"},"only":{"items":{"type":"string"},"type":"array"},"operation":{"description":"The operation this input is a body for. Left out, the input takes a pair -- {\"operation\": \"customer.query\", \"params\": {...}} -- validated against whichever operation the run names, which a request state sends with \"operation\": \"\\${input.\\<name>.operation}\" and \"params\": {\"\\$from\": \"\\${input.\\<name>.params}\"}.","type":"string"},"required":{"type":"boolean"},"schema":{"$ref":"#/components/schemas/WorkflowChartInputSchema","description":"The shape of one value of this input (of each element, for a list), checked when a run starts and against the example: a subset of JSON Schema (type, properties, required, additionalProperties, items, enum, description, body_of). Allowed on an object or array input, or a list input that isn't an operation. Its top-level type defaults to the input's type. The reference picker and lint read its fields, so \\${input.\\<name>.\\<field>} naming a field it lacks is a warning."},"type":{"enum":["string","number","boolean","object","array","operation"]}},"required":["type"],"then":{"not":{"required":["schema"]}},"type":"object"},"listTxnDeleteds_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_deleted":{"description":"The time when this list or transaction object was deleted.","format":"date-time","type":"string"},"txn_del_type":{"description":"The type of transaction to be deleted.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","TimeTracking","TransferInventory","VehicleMileage","VendorCredit"],"type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listItemSalesTaxes_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"sales_tax_return_line_ref":{"description":"Sales tax return line information.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_rate":{"description":"The tax rate. If a nonzero `tax_rate` is specified, then `tax_vendor_ref` is required.","type":"number"},"tax_vendor_ref":{"description":"Refers to the tax agency to whom collected taxes are owed. (This will be a vendor on the Vendor list.) If a nonzero `tax_rate` is specified, then `tax_vendor_ref` is required. In a request, if a `tax_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listPayrollItems_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"oneOf":[{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"edit_sequence":{"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_active":{"type":"boolean"},"list_id":{"type":"string"},"name":{"type":"string"},"overtime_multiplier":{"type":"number"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"type":{"const":"payroll_item_wage","description":"Which record type this is; the query answers with several."},"wage_type":{"enum":["Bonus","Commission","HourlyOvertime","HourlyRegular","HourlySick","HourlyVacation","SalaryRegular","SalarySick","SalaryVacation"],"type":"string"}},"required":["type"],"title":"PayrollItemWageRet","type":"object"},{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"calculated_based_on":{"enum":["HoursAll","HoursWorked","Quantity","Rate"],"type":"string"},"edit_sequence":{"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_active":{"type":"boolean"},"is_tracked_by_cust_job":{"type":"boolean"},"limit":{"type":"number"},"limit_time_period":{"enum":["Annual","Forever"],"type":"string"},"list_id":{"type":"string"},"name":{"type":"string"},"net_or_gross":{"enum":["Gross","Net"],"type":"string"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"taxability":{"items":{"properties":{"is_tax_applied":{"type":"boolean"},"payroll_item_tax_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"type":{"const":"payroll_item_addition","description":"Which record type this is; the query answers with several."},"w2_tracking_type_value":{"type":"integer"}},"required":["type"],"title":"PayrollItemAdditionRet","type":"object"},{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"calculated_based_on":{"enum":["HoursAll","HoursWorked","Quantity","Rate"],"type":"string"},"edit_sequence":{"type":"string"},"is_active":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"type":"object"},"limit":{"type":"number"},"limit_time_period":{"enum":["Annual","Forever"],"type":"string"},"list_id":{"type":"string"},"name":{"type":"string"},"net_or_gross":{"enum":["Gross","Net"],"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"taxability":{"items":{"properties":{"is_tax_applied":{"type":"boolean"},"payroll_item_tax_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"type":{"const":"payroll_item_deduction","description":"Which record type this is; the query answers with several."},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"w2_tracking_type_value":{"type":"integer"}},"required":["type"],"title":"PayrollItemDeductionRet","type":"object"},{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"calculated_based_on":{"enum":["HoursAll","HoursWorked","Quantity","Rate"],"type":"string"},"edit_sequence":{"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_active":{"type":"boolean"},"is_tracked_by_cust_job":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"type":"object"},"limit":{"type":"number"},"limit_time_period":{"enum":["Annual","Forever"],"type":"string"},"list_id":{"type":"string"},"name":{"type":"string"},"net_or_gross":{"enum":["Gross","Net"],"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"taxability":{"items":{"properties":{"is_tax_applied":{"type":"boolean"},"payroll_item_tax_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"type":{"const":"payroll_item_company_contribution","description":"Which record type this is; the query answers with several."},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"w2_tracking_type_value":{"type":"integer"}},"required":["type"],"title":"PayrollItemCompanyContributionRet","type":"object"},{"properties":{"edit_sequence":{"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_active":{"type":"boolean"},"is_tracked_by_cust_job":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"type":"object"},"list_id":{"type":"string"},"name":{"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_detail_type_value":{"type":"integer"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"type":{"const":"payroll_item_workers_compensation","description":"Which record type this is; the query answers with several."},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"required":["type"],"title":"PayrollItemWorkersCompensationRet","type":"object"},{"properties":{"edit_sequence":{"type":"string"},"is_active":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"list_id":{"type":"string"},"name":{"type":"string"},"payroll_item_detail_type_value":{"type":"integer"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"type":{"const":"payroll_item_direct_deposit","description":"Which record type this is; the query answers with several."}},"required":["type"],"title":"PayrollItemDirectDepositRet","type":"object"},{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"edit_sequence":{"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_active":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"type":"object"},"limit":{"type":"number"},"list_id":{"type":"string"},"name":{"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_change":{"items":{"properties":{"rate_percent":{"type":"number"},"sunset_date":{"format":"date","type":"string"}},"type":"object"},"type":"array"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"state":{"type":"string"},"tax_calculated_based_on":{"enum":["Compensation","HoursAll","HoursWorked","Quantity"],"type":"string"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"type":{"const":"payroll_item_tax","description":"Which record type this is; the query answers with several."},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"w2_tracking_type_value":{"type":"integer"}},"required":["type"],"title":"PayrollItemTaxRet","type":"object"}]},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listForm1099CategoryAccountMappings_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"category_account_mapping":{"items":{"properties":{"account_ref":{"items":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"type":"array"},"mapping_category":{"description":"A mapping category indicates the form 1099 box that one or more accounts is being mapped to. You must specify one of the following enumerated values based on the form type:","enum":["BOX1","BOX10","BOX13","BOX14","BOX2","BOX3","BOX4","BOX5","BOX6","BOX7","BOX8","BOX9"],"type":"string"},"threshold":{"description":"This is the dollar amount at which the IRS requires you to file the 1099-MISC and 1099-NEC forms. Each box (“Category” in SDK lingo) can have a separate threshold, as established by the IRS. For the latest thresholds, check the website for the Internal Revenue Service, currently at www.irs.gov.","type":"number"}},"type":"object"},"type":"array"},"is_filing1099_misc":{"description":"This property reports only (it doesn’t set!) the current status of 1099 preferences setting in the company file. The value true indicates that the company file currently has the 1099 filing preference turned on. The value false indicates that the company file isn’t currently set to file 1099-MISC and 1099-NEC forms.","type":"boolean"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listPreferences_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"accounting_preferences":{"description":"Accounting preferences that the QuickBooks administrator has set. These preferences apply to all users who log into this QuickBooks company file.","properties":{"assign_classes_to":{"description":"Default class assigned to transactions.","enum":["Accounts","Items","Names","None"],"type":"string"},"closing_date":{"description":"The company closing date set within the company file. (The QuickBooks Admin can assign a password restricting access to transactions that occurred before this date.)","format":"date","type":"string"},"is_assigning_journal_entry_numbers":{"description":"If true, QuickBooks will automatically assign a number to each journal entry.","type":"boolean"},"is_requiring_accounts":{"description":"If `is_requiring_accounts` is true, a transaction can’t be recorded in the user interface unless it is assigned to an account. (However, transactions affected by this preference always require an account to be specified when added through the SDK.)","type":"boolean"},"is_using_account_numbers":{"description":"If true, an account number can be recorded for new accounts. If you include an account number in AccountAdd object when this preference is false, the account number will still be set, but won’t be visible in the user interface.","type":"boolean"},"is_using_audit_trail":{"description":"If true, QuickBooks will log all transaction changes in the audit trail report. If false, QuickBooks logs only the most recent version of each transaction.","type":"boolean"},"is_using_class_tracking":{"description":"If true, QuickBooks will include a “Class” field on all transactions.","type":"boolean"}},"type":"object"},"current_app_access_rights":{"description":"`current_app_access_rights` indicates whether auto-login has been allowed, the name of the auto-login user, and whether the application has been granted access to personal (sensitive) data.","properties":{"automatic_login_user_name":{"description":"If auto-login is allowed for this QuickBooks company file, `automatic_login_user_name` gives the user name that is allowed to use auto-login.","type":"string"},"is_automatic_login_allowed":{"description":"If `is_automatic_login_allowed` is true, then applications can use auto-login to access this QuickBooks company file.","type":"boolean"},"is_personal_data_access_allowed":{"description":"If true, then access is allowed to personal (sensitive) data in this QuickBooks company file.","type":"boolean"}},"type":"object"},"finance_charge_preferences":{"description":"Preferences that the QuickBooks administrator has set for how finance charges are assessed against customers for late payment. These preferences apply to all users who log into this QuickBooks company file.","properties":{"annual_interest_rate":{"description":"The interest rate, set by the QuickBooks user, that QuickBooks will use to calculate finance charges. The default value is 0.","type":"number"},"calculate_charges_from":{"description":"This preference is set by the QuickBooks user. Unless they change the value within QuickBooks, it will be DueDate.","enum":["DueDate","InvoiceOrBilledDate"],"type":"string"},"finance_charge_account_ref":{"description":"Refers to the name of the account used to track finance charges that customers pay. This is usually an income account. In a request, if a `finance_charge_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"grace_period":{"description":"The number of days before finance charges apply to customers’ overdue invoices. `grace_period` is set by the QuickBooks user, and has a default value (within QuickBooks) of 0.","type":"integer"},"is_assessing_for_overdue_charges":{"description":"If true, finance charges are assessed on overdue finance charges. This preference is set by the QuickBooks user, and has a default value (within QuickBooks) of false. (Note that laws vary about whether a company can charge interest on overdue interest payments.)","type":"boolean"},"is_marked_to_be_printed":{"description":"If `is_marked_to_be_printed` is true, all newly created finance-charge invoices will be marked “To be printed.” (This makes it easier for the QuickBooks user to print a selection of invoices all at once.) This preference is set by the QuickBooks user, and has a default value within QuickBooks of false.","type":"boolean"},"min_finance_charge":{"description":"The minimum finance charge that will be applied regardless of the amount overdue. `min_finance_charge` is set by the QuickBooks user, and has a default value (within QuickBooks) of 0.","type":"number"}},"type":"object"},"items_and_inventory_preferences":{"description":"This aggregate contains the current item inventory settings for this company file.","properties":{"enhanced_inventory_receiving_enabled":{"description":"Indicator whether the enanched inventory receiving is turned on for this company file. A value of true means it is turned on, a value of false means it isn’t turned on.","type":"boolean"},"fifo_effective_date":{"description":"Date that FIFO (First In, First Out) is used to calculate the value of inventory sold and on-hand for this company file.","format":"date","type":"string"},"fifo_enabled":{"description":"Indicator whether FIFO (First In, First Out) to calculate the value of inventory sold and on-hand is turned on for this company file. A value of true means it is turned on, a value of false means it isn’t turned on.","type":"boolean"},"is_barcode_enabled":{"description":"Indicator whether barcode are enabled for this company file. A value of true means it is turned on, a value of false means it isn’t turned on.","type":"boolean"},"is_rsb_enabled":{"description":"Indicator whether the bin tracking is turned on for this company file. A value of true means it is turned on, a value of false means it isn’t turned on.","type":"boolean"},"is_tracking_on_build_assembly_enabled":{"description":"Indicator whether the serial or lot number tracking is turned on for build assemblies in this company file. A value of true means it is turned on, a value of false means it isn’t turned on.","type":"boolean"},"is_tracking_on_inventory_adjustment_enabled":{"description":"Indicator whether the serial or lot number tracking is turned on for inventory adjustments in this company file. A value of true means it is turned on, a value of false means it isn’t turned on.","type":"boolean"},"is_tracking_on_purchase_transactions_enabled":{"description":"Indicator whether the serial or lot number tracking is turned on for purchase transactions in this company file. A value of true means it is turned on, a value of false means it isn’t turned on.","type":"boolean"},"is_tracking_on_sales_transactions_enabled":{"description":"Indicator whether the serial or lot number tracking is turned on for sales transactions in this company file. A value of true means it is turned on, a value of false means it isn’t turned on.","type":"boolean"},"is_tracking_serial_or_lot_number":{"description":"Indicator on whether the serial or lot number tracking is being tracked for this company file. `is_tracking_serial_or_lot_number` may have one of the following values: None [DEFAULT], SerialNumber, LotNumber","enum":["LotNumber","None","SerialNumber"],"type":"string"}},"type":"object"},"jobs_and_estimates_preferences":{"description":"Preferences that the QuickBooks administrator has set about how to handle jobs and estimates. These preferences apply to all users who log into this QuickBooks company file.","properties":{"is_printing_items_with_zero_amounts":{"description":"If true, line items with zero amounts will print on progress invoices. (`is_printing_items_with_zero_amounts` isn’t relevant unless IsUsingProgressInvoices is true.)","type":"boolean"},"is_using_estimates":{"description":"If true, this user is set up to create estimates for jobs.","type":"boolean"},"is_using_progress_invoicing":{"description":"If true, the QuickBooks user can create an invoice for only a portion of an estimate.","type":"boolean"}},"type":"object"},"multi_currency_preferences":{"description":"This aggregate contains the current multi currency settings for this company file.","properties":{"home_currency_ref":{"description":"The currency that is set as the home currency for this company file. The home currency is normally the currency of the country where the business is physically located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_multi_currency_on":{"description":"Indicates whether the multicurrency feature is turned on for this company file. A value of true means it is turned on, a value of false means it isn’t turned on. Currently, once multicurrency is turned on for a company file, it can’t be turned off.","type":"boolean"}},"type":"object"},"multi_location_inventory_preferences":{"description":"This aggregate contains the current multilocation inventory settings for this company file.","properties":{"is_multi_location_inventory_available":{"description":"Indicates whether the multilocation inventory feature is available for this company file. A value of true means it is turned on, a value of false means it isn’t turned on.","type":"boolean"},"is_multi_location_inventory_enabled":{"description":"Indicates whether the multilocation inventory feature is turned on for this company file. A value of true means it is turned on, a value of false means it isn’t turned on.","type":"boolean"}},"type":"object"},"purchases_and_vendors_preferences":{"description":"Preferences that the QuickBooks administrator has set about how to handle purchases and vendors. These preferences apply to all users who log into this QuickBooks company file.","properties":{"days_bills_are_due":{"description":"By default, bills are due this many days after receipt.","type":"integer"},"default_discount_account_ref":{"description":"Refers to the account where vendor discounts are tracked. In a request, if a `default_discount_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_automatically_using_discounts":{"description":"If true, QuickBooks will automatically apply available vendor discounts or credits to a bill that is being paid.","type":"boolean"},"is_using_inventory":{"description":"If `is_using_inventory` is true, the inventory-related features of QuickBooks are available.","type":"boolean"}},"type":"object"},"reports_preferences":{"description":"Reporting preferences that the QuickBooks administrator has set. The preferences returned through the SDK apply to all users who log into this QuickBooks company file.","properties":{"aging_report_basis":{"description":"“AgeFromDueDate” means that the overdue days shown in these reports will begin with the due date on the invoice. “AgeFromTransactionDate” means that the overdue days shown in these reports will begin with the date the transaction was created.","enum":["AgeFromDueDate","AgeFromTransactionDate"],"type":"string"},"summary_report_basis":{"description":"Indicates whether summary reports use cash-basis or accrual-basis bookkeeping.","enum":["Accrual","Cash"],"type":"string"}},"type":"object"},"sales_and_customers_preferences":{"description":"Sales and customer preferences that the QuickBooks administrator has set. These preferences apply to all users who log into this QuickBooks company file.","properties":{"default_fob":{"description":"Default FOB (site from which invoiced products are shipped).","type":"string"},"default_markup":{"description":"Default percentage that an inventory item will be marked up from its cost.","type":"number"},"default_ship_method_ref":{"description":"Will be used as the default value in all “Ship Via” fields. (Refers to an item on the ShipMethod list.) If a `default_ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_auto_applying_payments":{"description":"If true, a customer’s payment will automatically be applied to the outstanding invoices for that customer, beginning with the oldest invoice.","type":"boolean"},"is_tracking_reimbursed_expenses_as_income":{"description":"If true, an expense and the customer’s reiumbursement for that expense can be tracked in separate accounts.","type":"boolean"},"price_levels":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.","properties":{"is_rounding_sales_price_up":{"description":"If true, amounts are rounded up to nearest whole dollar for fixed percentage price levels (not for per item price levels).","type":"boolean"},"is_using_price_levels":{"description":"If true, price levels have been turned on for the company file (under Sales and Customers preferences), which enables the creation and use of price levels.","type":"boolean"}},"type":"object"}},"type":"object"},"sales_tax_preferences":{"description":"Sales-tax preferences that the QuickBooks administrator has set. These preferences apply to all users who log into this QuickBooks company file. If sales tax is turned off in the user interface (that is, if “No” is selected for “Do You Charge Sales Tax?” in the sales tax preferences), then a PreferencesQuery message won’t return this aggregate at all.","properties":{"default_item_sales_tax_ref":{"description":"The default tax code for sales. (Refers to a sales-tax code on the SalesTaxCode list.) In a request, if a `default_item_sales_tax_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"default_non_taxable_sales_tax_code_ref":{"description":"The default tax code for non-taxable sales. (Refers to a sales-tax code on the SalesTaxCode list.) If a `default_non_taxable_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"default_taxable_sales_tax_code_ref":{"description":"The default tax code for taxable sales. (Refers to a sales-tax code on the SalesTaxCode list.) In a request, if a `default_taxable_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_using_amounts_include_tax":{"description":"Indicator whether the Allow tax inclusive prices is turned on for this company file. A value of true means it is turned on, a value of false means it isn’t turned on.","type":"boolean"},"is_using_customer_tax_code":{"description":"Indicator whether the Use Customer Tax Codes is turned on for customers in this company file. A value of true means it is turned on, a value of false means it isn’t turned on.","type":"boolean"},"is_using_vendor_tax_code":{"description":"Indicator whether the Use Vendor Tax Codes is turned on for vendors in this company file. A value of true means it is turned on, a value of false means it isn’t turned on.","type":"boolean"},"pay_sales_tax":{"description":"The frequency of sales tax reports.","enum":["Annually","Monthly","Quarterly"],"type":"string"}},"type":"object"},"time_tracking_preferences":{"description":"Time-tracking preferences that the QuickBooks administrator has set. If time tracking is turned off in the user interface (that is, if “No” is selected for “Do You Track Time?” in the time tracking preferences), then a PreferencesQuery message won’t return this aggregate at all.","properties":{"first_day_of_week":{"description":"The first day of a weekly timesheet period.","enum":["Friday","Monday","Saturday","Sunday","Thursday","Tuesday","Wednesday"],"type":"string"}},"type":"object"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createItemReceipt_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"not":{"anyOf":[{"required":["ap_account_ref","liability_account_ref"]}]},"properties":{"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.\n\nChoose at most one of: `ap_account_ref`, or `liability_account_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for `expense_line_add` it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_ret":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If `item_line_add` doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If `item_line_add` doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"liability_account_ref":{"description":"Refers to a liability account for this non-wage payroll item.\n\nChoose at most one of: `ap_account_ref`, or `liability_account_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the home currency.","type":"number"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"ItemReceiptRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listListDeleteds_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_del_type":{"description":"The type of list from which a list member is being deleted.","enum":["Account","BillingRate","Class","Currency","Customer","CustomerMsg","CustomerType","DateDrivenTerms","Employee","InventorySite","ItemDiscount","ItemFixedAsset","ItemGroup","ItemInventory","ItemInventoryAssembly","ItemNonInventory","ItemOtherCharge","ItemPayment","ItemSalesTax","ItemSalesTaxGroup","ItemService","ItemSubtotal","JobType","OtherName","PaymentMethod","PayrollItemNonWage","PayrollItemWage","PriceLevel","SalesRep","SalesTaxCode","ShipMethod","StandardTerms","ToDo","UnitOfMeasureSet","Vehicle","Vendor","VendorType","WorkersCompCode"],"type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_deleted":{"description":"The time when this list or transaction object was deleted.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createItemInventory_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"asset_account_ref":{"description":"Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"average_cost":{"description":"`average_cost` is the total value of this item divided by `quantity_on_hand`. Initially the total value is the same as the `quantity_on_hand` times the `purchase_cost` (so `average_cost` equals `purchase_cost`). However, the total value can be changed by an inventory adjustment so that it no longer matches `quantity_on_hand` times `purchase_cost`.","type":"number"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cogs_account_ref":{"description":"Refers to the account that QuickBooks uses to track the original cost of goods that are eventually sold. (The AccountType of this account will be CostOfGoodsSold.) In a request, if a `cogs_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"max":{"description":"Maximum number of items in inventory.","type":"number"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Appears in the Description column of checks, bills, credit card charges, and item receipts when this item is reordered.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity_on_hand":{"description":"The number of these items in inventory. `quantity_on_hand` times `average_cost` is `total_value` in an inventory item list. To change the `quantity_on_hand` for an item, you would have to use InventoryAdjustmentAdd not an ItemInventoryMod.","type":"number"},"quantity_on_order":{"description":"The number of these items that have been ordered from vendors (as recorded in purchase orders) but not received.","type":"number"},"quantity_on_sales_order":{"description":"The number of these items that have been sold (as recorded in sales orders) but not delivered to customers.","type":"number"},"reorder_point":{"description":"Quantity at which QuickBooks will remind the user to reorder this inventory item.","type":"number"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"ItemInventoryRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateVendor_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"vendor_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in ShipAddressBlock or BillAddressBlock.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"mobile":{"type":"string"},"tax_on_sales_account_ref":{"description":"Account used for taxes on sales in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"prefill_account_ref":{"items":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"type":"array"},"is_sales_tax_agency":{"description":"Indicates whether the entity is a sales tax agency.","type":"boolean"},"is_tax_agency":{"description":"Is the current entity a tax agency.","type":"boolean"},"is_tax_on_tax":{"description":"For vendor in CA or UK, is there tax charged on top of tax.","type":"boolean"},"fax":{"description":"Fax number.","type":"string"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"vendor_type_ref":{"description":"Vendor types allow business owners to categorize vendors in ways that are meaningful for their businesses. For example, a vendor type might indicate which industry a vendor represents, or which part of the country a vendor is in. A `vendor_type_ref` aggregate refers to one of the types on the VendorType list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_tax_tracked_on_sales":{"description":"This flag is used for CA or UK and whether tax is tracked on sales.","type":"boolean"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"vendor_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"reporting_period":{"description":"Vendor reporting period for CA or UK. This can be monthly or quarterly.","enum":["Monthly","Quarterly"],"type":"string"},"alt_contact":{"description":"The name of an alternate contact person for a vendor, customer, or “other name” entry.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"billing_rate_ref":{"description":"Billing rates are used to override the service item rate in a time transaction (TimeTrackingAdd) based on the employee or vendor performing the work. Billing rates are assigned to an employee or a vendor to specify overrides to service items.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_limit":{"description":"Set and returned as a positive number that indicates a customer’s or vendor’s credit limit. If no value has been defined, there is no credit limit.","type":"number"},"additional_notes_ret":{"items":{"properties":{"date":{"description":"The date the note was updated.","format":"date","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"note_id":{"description":"The ID of the note.","type":"integer"}},"type":"object"},"type":"array"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"email":{"description":"E-mail address.","type":"string"},"tax_on_purchases_account_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_vendor_eligible_for1099":{"description":"If `is_vendor_eligible_for1099` is set to true, `vendor_tax_ident` and `vendor_address` are required in a vendor add request message. Otherwise, `vendor_tax_ident` and `vendor_address` are optional.","type":"boolean"},"sales_tax_return_ref":{"description":"Sales tax return information.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"contacts_ret":{"items":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"phone":{"description":"The telephone number.","type":"string"},"vendor_tax_ident":{"description":"A character string that identifies a vendor.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"balance":{"description":"A positive number indicates money owed to this vendor.","type":"number"},"name_on_check":{"description":"The vendor’s name as it will appear on checks sent to the vendor. (Corresponds in the QuickBooks user interface to the “Print on Check as” field of the Edit Vendor and New Vendor windows.)","type":"string"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"cc":{"description":"Email address that would be carbon copied or CC.","type":"string"},"suffix":{"type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_country":{"description":"The country that sales tax is collected for.","enum":["Australia","Canada","UK","US"],"type":"string"},"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"pager":{"type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_tax_tracked_on_purchases":{"description":"This flag is used for CA or UK and whether tax is tracked on purchases.","type":"boolean"},"tax_registration_number":{"description":"The tax registration number used in CA and UK.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"notes":{"description":"Additional information about this vendor.","type":"string"},"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"}},"title":"VendorRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updatePayrollItemDirectDeposit_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"edit_sequence":{"type":"string"},"is_active":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"list_id":{"type":"string"},"name":{"type":"string"},"payroll_item_detail_type_value":{"type":"integer"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listPurchaseOrders_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"purchase_order_line_group_ret":{"description":"Represents a previously defined group of lines in the purchase order. Compare with PurchaseOrderLine, which represents just one line in the purchase order.\n\n`purchase_order_line_ret` and `purchase_order_line_group_ret` combine: any number of each.","items":{"properties":{"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"Description that appears on the purchase order for this line item.","type":"string"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_order_line_ret":{"description":"One line of the purchase order. Compare with PurchaseOrderLineGroup, which represents a previously defined group of lines in the purchase order.","items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"Description that appears on the purchase order for this line item.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_billed":{"description":"If `is_billed` is true, the tracked time has already been billed.","type":"boolean"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this purchase order has been closed, even if all the items haven’t been received or the sale hasn’t been cancelled. Once the purchase order is marked as closed, all the line items within it become closed as well. You can’t change `is_manually_closed` to false after the purchase order has been fully received.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)","type":"number"},"received_quantity":{"description":"The quantity that has been received against this purchase order.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unbilled_quantity":{"description":"The quantity that hasn’t been billed.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"total_amount":{"description":"The returned `total_amount` will be the total of the amounts in the purchase order lines and group lines.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"vendor_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or BillAddressBlock.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this purchase order has been closed, even if all the items haven’t been received or the sale hasn’t been cancelled. Once the purchase order is marked as closed, all the line items within it become closed as well. You can’t change `is_manually_closed` to false after the purchase order has been fully received.","type":"boolean"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the home currency.","type":"number"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"vendor_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"expected_date":{"description":"The date on which shipment is expected.","format":"date","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"ship_to_entity_ref":{"description":"Refers to a customer, vendor, employee, or person on the “other names” list to whom this order is to be shipped. If a `ship_to_entity_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_order_line_ret":{"description":"One line of the purchase order. Compare with PurchaseOrderLineGroup, which represents a previously defined group of lines in the purchase order.\n\n`purchase_order_line_ret` and `purchase_order_line_group_ret` combine: any number of each.","items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"Description that appears on the purchase order for this line item.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_billed":{"description":"If `is_billed` is true, the tracked time has already been billed.","type":"boolean"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this purchase order has been closed, even if all the items haven’t been received or the sale hasn’t been cancelled. Once the purchase order is marked as closed, all the line items within it become closed as well. You can’t change `is_manually_closed` to false after the purchase order has been fully received.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)","type":"number"},"received_quantity":{"description":"The quantity that has been received against this purchase order.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unbilled_quantity":{"description":"The quantity that hasn’t been billed.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"vendor_msg":{"description":"Message to be printed on a purchase order for the vendor to read.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"memo":{"description":"This can be included in reports, but it doesn’t appear on the printed purchase order.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"is_fully_received":{"description":"If `is_fully_received` is true, all the items in the purchase order have been received and none of them was closed manually.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"total_amount":{"description":"The returned `total_amount` will be the total of the amounts in the purchase order lines and group lines.","type":"number"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listVendorTypes_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"executeTxnVoid_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"title":"TxnVoidType","type":"object"},{"title":"TxnID","type":"object"},{"title":"TimeCreated","type":"object"},{"title":"TimeModified","type":"object"},{"title":"RefNumber","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listClasses_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"The case-insensitive name of the class, not including the names of its ancestors.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowChart":{"additionalProperties":false,"description":"A workflow is one JSON document: a Harel statechart whose states queue QuickBooks requests, pause for a decision from the calling app, or transform data. Qube.Workflows.Chart.validate/1 is the source of truth; this schema is documentation and a first-pass check. A run takes at most 500 transitions, then fails with fault transition_limit: a paginating loop costs about two per page, so about 250 pages a run.","properties":{"description":{"type":"string"},"headline":{"description":"One plain sentence saying what happened when the run ends `completed`, the `headline` of its webhook, rendered as a declared outcome's `headline` is. Without one the webhook says \"\\<name> completed.\"","type":"string"},"initial":{"$ref":"#/components/schemas/WorkflowChartIdentifier"},"input":{"additionalProperties":{"$ref":"#/components/schemas/WorkflowChartInputDeclaration"},"description":"What a run accepts. Validated at run start and published as a JSON Schema.","propertyNames":{"$ref":"#/components/schemas/WorkflowChartIdentifier"},"type":"object"},"key":{"$ref":"#/components/schemas/WorkflowChartWorkflowKey"},"name":{"type":"string"},"on":{"$ref":"#/components/schemas/WorkflowChartEventMap"},"outcomes":{"additionalProperties":{"properties":{"description":{"description":"What this ending means, when its key does not say it already. Optional. Shown on the canvas, in the usage contract and in the guide.","type":"string"},"headline":{"description":"One plain sentence saying what happened when the run ends this way, the `headline` of its webhook: a template, rendered with the run's context and `output` (and `error` on a failure), such as \"Created \\${output.record.full_name} in QuickBooks.\" A value it names that is missing, or a template that does not render, gives the engine's own sentence instead. For people: an app never parses it.","type":"string"},"kind":{"default":"success","description":"success: the run ends completed with this outcome. failure: the run ends failed with this outcome, and a workflow calling this one receives it as an error with response.outcome set.","enum":["success","failure"]},"output":{"description":"Template rendered when the run ends this way, instead of the chart's own `output`. While it renders, `meta.outcome` holds the outcome key."}},"type":"object"},"description":"Extra ways a run can end, beyond completed and failed. Each is a success (the default: the workflow worked as designed and this is how it ended; the run ends `completed` with this `outcome`) or, with `\"kind\": \"failure\"`, a named failure (the run ends `failed` with this `outcome`, and `error` is whatever the transition assigned to `error`, else the description, else `ended with outcome <key>`). A transition may target a declared outcome from anywhere, and no state at any level may use one of these keys.","propertyNames":{"pattern":"^[a-z][a-z0-9_]{0,49}$"},"type":"object"},"output":{"description":"Template evaluated against the final context when the run reaches `completed` or an outcome with no `output` of its own. Defaults to \\${vars}. While it renders, `meta.outcome` holds the outcome key."},"states":{"$ref":"#/components/schemas/WorkflowChartStatesMap"},"ui":{"description":"Canvas bookkeeping for the chart itself, ignored by the engine: one entry per outcome placing its terminal node, and `transitions` placing the pills of the root's own handlers, keyed \"\\<event>|\\<index>\".","type":"object"},"version":{"const":1}},"required":["version","initial","states"],"title":"QuBeSync workflow chart","type":"object"},"ValidationErrors":{"description":"A field-by-field list of what was wrong. Nothing was saved.","example":{"errors":{"redirect_url":["isn't taken in v2: set webhook_url instead, and QuBe Sync sends the connection's events there (connection.connected, connection.setup_cancelled)"]}},"properties":{"errors":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object"}},"type":"object"},"listSalesOrders_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this sales order has been closed, even if some line items within it haven’t been invoiced.","type":"boolean"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"sales_tax_percentage":{"description":"The percentage charged for sales tax.","type":"number"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the home currency.","type":"number"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"is_fully_invoiced":{"description":"If `is_fully_invoiced` is true, all the items in the sales order have been invoiced.","type":"boolean"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"sales_order_line_group_ret":{"description":"Represents a previously defined group of lines in the sales order. Compare with SalesOrderLine, which represents just one line in the sales order.\n\n`sales_order_line_ret` and `sales_order_line_group_ret` combine: any number of each.","items":{"properties":{"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_order_line_ret":{"description":"Represents one line in the sales order. Compare with SalesOrderLineGroup, which represents a previously defined group of lines in the sales order.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"invoiced":{"description":"The amount of this sales order line that has been invoiced.","type":"number"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this sales order has been closed, even if some line items within it haven’t been invoiced.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bill_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"subtotal":{"description":"The total of the amounts in all the lines of an invoice, estimate, sales receipt, or credit memo before taxes or payments are applied. (By contrast, a subtotal item (an ItemSubtotal object) gives only the total of the amounts in the lines that appear above it.)","type":"number"},"sales_tax_total":{"description":"The total amount of sales tax charged.","type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"po_number":{"description":"Purchase order number.","type":"string"},"memo":{"description":"Additional information.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_order_line_ret":{"description":"Represents one line in the sales order. Compare with SalesOrderLineGroup, which represents a previously defined group of lines in the sales order.\n\n`sales_order_line_ret` and `sales_order_line_group_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"invoiced":{"description":"The amount of this sales order line that has been invoiced.","type":"number"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this sales order has been closed, even if some line items within it haven’t been invoiced.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createVendorCredit_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_amount":{"description":"The amount of a credit that is being applied to a vendor bill, reducing the amount that is owed on the bill.","type":"number"},"credit_amount_in_home_currency":{"description":"The amount of the credit, expressed in units of the current home currency.","type":"number"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for `expense_line_add` it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Appears in the A/P register and in reports that include this credit.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_ret":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If `item_line_add` doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If `item_line_add` doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Appears in the A/P register and in reports that include this credit.","type":"string"},"open_amount":{"description":"Indicates the amount that is still owed. AmountDue minus any credits or discounts equals the `open_amount`.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"VendorCreditRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateSalesOrder_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this sales order has been closed, even if some line items within it haven’t been invoiced.","type":"boolean"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"sales_tax_percentage":{"description":"The percentage charged for sales tax.","type":"number"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the home currency.","type":"number"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"is_fully_invoiced":{"description":"If `is_fully_invoiced` is true, all the items in the sales order have been invoiced.","type":"boolean"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"sales_order_line_group_ret":{"description":"Represents a previously defined group of lines in the sales order. Compare with SalesOrderLine, which represents just one line in the sales order.\n\n`sales_order_line_ret` and `sales_order_line_group_ret` combine: any number of each.","items":{"properties":{"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_order_line_ret":{"description":"Represents one line in the sales order. Compare with SalesOrderLineGroup, which represents a previously defined group of lines in the sales order.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"invoiced":{"description":"The amount of this sales order line that has been invoiced.","type":"number"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this sales order has been closed, even if some line items within it haven’t been invoiced.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bill_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"subtotal":{"description":"The total of the amounts in all the lines of an invoice, estimate, sales receipt, or credit memo before taxes or payments are applied. (By contrast, a subtotal item (an ItemSubtotal object) gives only the total of the amounts in the lines that appear above it.)","type":"number"},"sales_tax_total":{"description":"The total amount of sales tax charged.","type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"po_number":{"description":"Purchase order number.","type":"string"},"memo":{"description":"Additional information.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_order_line_ret":{"description":"Represents one line in the sales order. Compare with SalesOrderLineGroup, which represents a previously defined group of lines in the sales order.\n\n`sales_order_line_ret` and `sales_order_line_group_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"invoiced":{"description":"The amount of this sales order line that has been invoiced.","type":"number"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this sales order has been closed, even if some line items within it haven’t been invoiced.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"}},"title":"SalesOrderRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listPayrollItemWages_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Description of the wage: for example, Regular Pay or Overtime Pay.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"wage_type":{"description":"The type of pay.","enum":["Bonus","Commission","HourlyOvertime","HourlyRegular","HourlySick","HourlyVacation","SalaryRegular","SalarySick","SalaryVacation"],"type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updatePayrollItemDeduction_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"calculated_based_on":{"enum":["HoursAll","HoursWorked","Quantity","Rate"],"type":"string"},"edit_sequence":{"type":"string"},"is_active":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"type":"object"},"limit":{"type":"number"},"limit_time_period":{"enum":["Annual","Forever"],"type":"string"},"list_id":{"type":"string"},"name":{"type":"string"},"net_or_gross":{"enum":["Gross","Net"],"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"taxability":{"items":{"properties":{"is_tax_applied":{"type":"boolean"},"payroll_item_tax_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"w2_tracking_type_value":{"type":"integer"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createItemGroup_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"item_group_line":{"items":{"properties":{"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"special_item_type":{"description":"Identifies the type of special item. See type for possible enum values.","enum":["FinanceCharge","ReimbursableExpenseGroup","ReimbursableExpenseSubtotal"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"ItemGroupRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateSalesReceipt_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"discount_line_ret":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"is_taxable":{"type":"boolean"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"sales_receipt_line_ret":{"description":"One line of the sales receipt. Compare with SalesReceiptLineGroup, which represents a previously defined group of lines in the sales receipt.\n\n`sales_receipt_line_ret` and `sales_receipt_line_group_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"sales_tax_percentage":{"description":"The percentage charged for sales tax.","type":"number"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the home currency.","type":"number"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"sales_receipt_line_group_ret":{"description":"Represents a previously defined group of lines in the sales receipt. Compare with SalesReceiptLine, which represents just one line in the sales receipt.\n\n`sales_receipt_line_ret` and `sales_receipt_line_group_ret` combine: any number of each.","items":{"properties":{"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_receipt_line_ret":{"description":"One line of the sales receipt. Compare with SalesReceiptLineGroup, which represents a previously defined group of lines in the sales receipt.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"total_amount":{"description":"Subtotal plus `sales_tax_total`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"is_pending":{"description":"If `is_pending` is set to true, the sales receipt hasn’t been completed. Pending sales might include unpaid orders, estimates, tracked hours that haven’t yet been billed, or sales of back-ordered items.","type":"boolean"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"check_number":{"description":"The check number of a check that a QuickBooks user writes or receives from someone else.","type":"string"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bill_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"A sales receipt doesn’t ordinarily include a due date, because sales receipts are generally used for point-of-sale payments, where full payment is received at the time of purchase.","format":"date","type":"string"},"subtotal":{"description":"The total of all the sales-receipt lines before taxes are applied. (By contrast, a subtotal item (an ItemSubtotal object) gives only the total of the amounts in the lines that appear above it.)","type":"number"},"sales_tax_total":{"description":"The total amount of sales tax charged.","type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_line_ret":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"shipping_line_ret":{"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"}},"type":"object"},"memo":{"description":"Message that appears in reports, but not on the sales receipt.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the sales receipt. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"total_amount":{"description":"Subtotal plus `sales_tax_total`.","type":"number"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"SalesReceiptRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listGeneralSummaryReports_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"col_desc":{"items":{"properties":{"col_id":{"description":"An identifying number that corresponds to the position of this column in the report. The columns are numbered from left to right, starting with 1.","type":"integer"},"col_title":{"items":{"type":"string"},"type":"array"},"col_type":{"description":"The type of data that this column contains. `col_type` values are formatted types. (Returned ctPercent values, for example, will have digits after the decimal points, and ctAddr1 values will be strings.)","enum":["Account","Addr1","Addr2","Addr3","Addr4","Addr5","Aging","Amount","AmountDifference","AverageCost","BilledDate","BillingStatus","Blank","CalculatedAmount","Class","ClearedStatus","CostPrice","CreateDate","Credit","CustomField","Date","Debit","DeliveryDate","DueDate","Duration","EarliestReceiptDate","EstimateActive","FOB","IncomeSubjectToTax","Invoiced","IsAdjustment","Item","ItemDesc","ItemVendor","Label","LastModifiedBy","LatestOrPriorState","Memo","ModifiedTime","Name","NameAccountNumber","NameAddress","NameCity","NameContact","NameEmail","NameFax","NamePhone","NameState","NameZip","OpenBalance","OriginalAmount","PONumber","PaidAmount","PaidStatus","PaidThroughDate","PaymentMethod","PayrollItem","Percent","PercentChange","PercentOfTotalRetail","PercentOfTotalValue","PhysicalCount","PrintStatus","ProgressAmount","ProgressPercent","Quantity","QuantityAvailable","QuantityOnHand","QuantityOnOrder","QuantityOnPendingBuild","QuantityOnSalesOrder","ReceivedQuantity","RefNumber","ReorderPoint","RetailValueOnHand","RunningBalance","SONumber","SSNOrTaxID","SalesPerWeek","SalesRep","SalesTaxCode","ShipDate","ShipMethod","ShipToAddr1","ShipToAddr2","ShipToAddr3","ShipToAddr4","ShipToAddr5","SourceName","SplitAccount","SuggestedReorder","TaxLine","TaxTableVersion","Terms","Total","TxnID","TxnNumber","TxnType","UnitPrice","UserEdit","ValueOnHand","WageBase","WageBaseTips"],"type":"string"},"data_type":{"description":"The data type: IDTYPE, STRTYPE, and so on.","enum":["AMTTYPE","BOOLTYPE","DATETIMETYPE","DATETYPE","ENUMTYPE","GUIDTYPE","IDTYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STRTYPE","TIMEINTERVALTYPE"],"type":"string"}},"type":"object"},"type":"array"},"num_col_title_rows":{"description":"The number of rows to allocate for column titles. Although this number is usually 1, with some reports it is 2 or 3. (For an example of column titles that span multiple rows, look at a ProfitAndLossByJob report in QuickBooks.)","type":"integer"},"num_columns":{"description":"The number of columns in the report.","type":"integer"},"num_rows":{"description":"The number of rows in the report.","type":"integer"},"report_basis":{"description":"If `report_basis` is rbCash, the report bases income and expenses on the dates when money changed hands.rbAccrual, the report bases income on the dates when customers were invoiced and bases expenses on the dates when bills were entered.rbNone, the report uses the default `report_basis`, which is either the QuickBooks Preference setting or the QuickBooks default for a given type of report.","enum":["Accrual","Cash","None"],"type":"string"},"report_data":{"description":"If the report contains any data, it is given row-by-row in a `report_data` aggregate.","properties":{"data_row":{"description":"A data row contains the actual data for each column.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"subtotal_row":{"description":"A row that contains a calculated subtotal of the data in all the rows since the last SubTotalRow and, usually, a single underline. There can be multiple SubTotalRow aggregates in a report.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"text_row":{"description":"A text row contains only text and is used mainly for headings.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"type":"string"},"type":"array"},"total_row":{"description":"A row that contains a calculated total of all the data that has come before and a double underline. There will only be one `total_row` per report. If `total_row` doesn’t include any numerical values, the columns required to show the total values aren’t part of the report. These columns weren’t included when the report was customized.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"}},"type":"object"},"report_subtitle":{"description":"The subtitle for this report.","type":"string"},"report_title":{"description":"The main title for this report.","type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listShipMethods_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"executeListMerge_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"title":"ListMergeType","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"time_deleted":{"description":"The time when this list or transaction object was deleted.","format":"date-time","type":"string"}},"title":"MergedFrom","type":"object"},{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"MergedTo","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateBuildAssembly_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"component_item_line_ret":{"items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"quantity_needed":{"description":"Indicates the number of the component part that is required in the assembly. For example, if the `item_ref` in this component is a bolt, the quantity needed field indicates how many of these bolts are used in the assembly.","type":"number"},"quantity_on_hand":{"description":"The number of these items in inventory. `quantity_on_hand` times AverageCost is TotalValue in an inventory item list. To change the `quantity_on_hand` for an item, you would have to use InventoryAdjustmentAdd not an ItemInventoryMod.","type":"number"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"}},"type":"object"},"type":"array"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_pending":{"description":"If `is_pending` is set to true, the transaction in question hasn’t been completed. Pending sales might include unpaid orders, estimates, tracked hours that haven’t yet been billed, or sales of back-ordered items. Within QuickBooks, you can change the `is_pending` status for a credit memo, for example, by choosing “Mark Credit Memo As Pending” or “Mark Credit Memo As Final” from the Edit menu.","type":"boolean"},"item_inventory_assembly_ref":{"description":"An inventory assembly item is one that is assembled or manufactured from inventory items. The items and/or assemblies that make up the assembly are called components. For Premier, an assembly can have a maximum of 100 components. For Enterprise, the maximum is 500 components.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"memo":{"description":"Additional information.","type":"string"},"quantity_can_build":{"description":"Indicates the number of this assembly that can be built from the parts on hand.","type":"number"},"quantity_on_hand":{"description":"The number of these items in inventory. `quantity_on_hand` times AverageCost is TotalValue in an inventory item list. To change the `quantity_on_hand` for an item, you would have to use InventoryAdjustmentAdd not an ItemInventoryMod.","type":"number"},"quantity_on_sales_order":{"description":"The number of these items that have been sold (as recorded in sales orders) but not delivered to customers.","type":"number"},"quantity_to_build":{"description":"Specifies the number of assemblies to be built. The transaction will fail if the number specified here exceeds the number of on-hand components.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"BuildAssemblyRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createAccount_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"},"account_type":{"description":"The type of QuickBooks account. You can’t create or modify a non-posting account through the SDK, because QuickBooks creates these accounts behind the scenes. This means that you can’t send an AccountAdd request with an `account_type` of NonPosting.","enum":["AccountsPayable","AccountsReceivable","Bank","CostOfGoodsSold","CreditCard","Equity","Expense","FixedAsset","Income","LongTermLiability","NonPosting","OtherAsset","OtherCurrentAsset","OtherCurrentLiability","OtherExpense","OtherIncome"],"type":"string"},"balance":{"description":"Current balance of this account only (versus `total_balance`). Income accounts and balance sheet accounts don’t necessarily have balances.","type":"number"},"bank_number":{"description":"The bank account number or an identifying note about the account. If a `bank_number` exists in a QuickBooks company file, it will only be returned to applications that have been granted permission to access sensitive data and that are using SDK v2.0 or greater.","type":"string"},"cash_flow_classification":{"description":"Indicates how this account is classified for cash flow reporting. If the value is cfcNone, the account hasn’t been classified. If the value is cfcNotApplicable, the account doesn’t qualify to be classified. (For example, a bank account that tracks cash transactions isn’t part of a cash flow report.)","enum":["Financing","Investing","None","NotApplicable","Operating"],"type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"detail_account_type":{"enum":["AP","AR","AccumulatedAdjustment","AccumulatedAmortization","AccumulatedAmortizationOfOtherAssets","AccumulatedDepletion","AccumulatedDepreciation","AdvertisingOrPromotional","AllowanceForBadDebts","Amortization","Auto","BadDebts","BankCharges","Buildings","CashOnHand","CharitableContributions","Checking","CommonStock","CostOfLabor","CostOfLaborCOS","CreditCard","DepletableAssets","Depreciation","DevelopmentCosts","DiscountsOrRefundsGiven","DividendIncome","DuesAndSubscriptions","EmployeeCashAdvances","Entertainment","EntertainmentMeals","EquipmentRental","EquipmentRentalCOS","FederalIncomeTaxPayable","FurnitureAndFixtures","Goodwill","Insurance","InsurancePayable","IntangibleAssets","InterestEarned","InterestPaid","Inventory","InvestmentMortgageOrRealEstateLoans","InvestmentOther","InvestmentTaxExemptSecurities","InvestmentUSGovObligations","Land","LeaseBuyout","LeaseholdImprovements","LegalAndProfessionalFees","Licenses","LineOfCredit","LoanPayable","LoansToOfficers","LoansToOthers","LoansToStockholders","MachineryAndEquipment","MoneyMarket","NonProfitIncome","NotesPayable","OfficeOrGeneralAdministrativeExpenses","OpeningBalanceEquity","OrganizationalCosts","OtherCostsOfServiceCOS","OtherCurrentAssets","OtherCurrentLiab","OtherFixedAssets","OtherInvestmentIncome","OtherLongTermAssets","OtherLongTermLiab","OtherMiscExpense","OtherMiscIncome","OtherMiscServiceCost","OtherPrimaryIncome","OwnersEquity","PaidInCapitalOrSurplus","PartnerContributions","PartnerDistributions","PartnersEquity","PayrollClearing","PayrollExpenses","PayrollTaxPayable","PenaltiesAndSettlements","PreferredStock","PrepaidExpenses","PrepaidExpensesPayable","PromotionalMeals","RentOrLeaseOfBuildings","RentsHeldInTrust","RentsInTrustLiab","RepairAndMaintenance","Retainage","RetainedEarnings","SalesOfProductIncome","SalesTaxPayable","Savings","SecurityDeposits","ServiceOrFeeIncome","ShareholderNotesPayable","ShippingFreightAndDelivery","ShippingFreightAndDeliveryCOS","StateOrLocalIncomeTaxPayable","SuppliesAndMaterials","SuppliesAndMaterialsCOGS","TaxExemptInterest","TaxesPaid","Travel","TravelMeals","TreasuryStock","TrustAccounts","TrustAccountsLiab","UndepositedFunds","Utilities","Vehicles"],"type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_account":{"description":"Indicates whether the account is used for tax.","type":"boolean"},"last_check_number":{"type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"special_account_type":{"description":"If `special_account_type` returns a value, then QuickBooks automatically created this account when it was needed. Some special accounts can’t be overridden, because QuickBooks uses them exclusively for special purposes.","enum":["AccountsPayable","AccountsReceivable","CondenseItemAdjustmentExpenses","CostOfGoodsSold","DirectDepositLiabilities","Estimates","ExchangeGainLoss","InventoryAssets","ItemReceiptAccount","OpeningBalanceEquity","PayrollExpenses","PayrollLiabilities","PettyCash","PurchaseOrders","ReconciliationDifferences","RetainedEarnings","SalesOrders","SalesTaxPayable","UncategorizedExpenses","UncategorizedIncome","UndepositedFunds"],"type":"string"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"tax_line_info_ret":{"description":"If the QuickBooks user has associated a tax form with this company file, they can also associate each account in the company file with a line of that tax form. (To check which tax form, if any, is associated with this company file, do a CompanyQuery and check the returned TaxForm value.)","properties":{"tax_line_id":{"description":"An internal representation of the tax line associated with this account.","type":"integer"},"tax_line_name":{"description":"The name of the tax line associated with this account, as it appears on the tax form.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"total_balance":{"description":"The balance for this object and all its subordinate objects. For example, the `total_balance` for XYZ Bank would be the total of the balances of all its subaccounts (checking, savings, and so on). If XYZ Bank didn’t have any subaccounts, `total_balance` and Balance would be the same.","type":"number"}},"title":"AccountRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createInvoice_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"discount_line_ret":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"is_taxable":{"type":"boolean"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"invoice_line_ret":{"description":"Represents one line in the invoice. Compare with InvoiceLineGroup, which represents a previously defined group of lines in the invoice.\n\n`invoice_line_ret` and `invoice_line_group_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"sales_tax_percentage":{"description":"The percentage charged for sales tax.","type":"number"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"is_paid":{"description":"If `is_paid` is true, this transaction has been paid.","type":"boolean"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"is_pending":{"description":"If `is_pending` is set to true, the invoice hasn’t been completed. Pending sales might include unpaid orders, estimates, tracked hours that haven’t yet been billed, or sales of back-ordered items.","type":"boolean"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the invoice. If you leave `txn_date` out of an InvoiceAdd message, QuickBooks might prefill it with the date of the invoice that was most recently saved.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"applied_amount":{"description":"The credits and payments applied to this invoice, as a negative number: -80.00 for an invoice paid 80.00 (observed on QuickBooks Enterprise 24.0).","type":"number"},"is_finance_charge":{"description":"If `is_finance_charge` is true, a finance-charge item has been added to the invoice.","type":"boolean"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"suggested_discount_amount":{"description":"The suggested discount for this invoice.","type":"number"},"bill_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"If `due_date` isn’t included in an InvoiceAdd request, QuickBooks might determine the due date according to the terms set for this customer.","format":"date","type":"string"},"subtotal":{"description":"The total of all the invoice lines, before taxes and `applied_amount` are applied. (By contrast, a subtotal item (an ItemSubtotal object) gives only the total of the amounts in the lines that appear above it.)","type":"number"},"sales_tax_total":{"description":"The total amount of sales tax charged.","type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_line_ret":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"po_number":{"description":"Purchase order number.","type":"string"},"shipping_line_ret":{"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"}},"type":"object"},"invoice_line_group_ret":{"description":"Represents a previously defined group of lines in the invoice. Compare with InvoiceLine, which represents just one line in the invoice.\n\n`invoice_line_ret` and `invoice_line_group_ret` combine: any number of each.","items":{"properties":{"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"invoice_line_ret":{"description":"Represents one line in the invoice. Compare with InvoiceLineGroup, which represents a previously defined group of lines in the invoice.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Message that appears in reports, but not on the invoice.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the invoice. If you leave `txn_date` out of an InvoiceAdd message, QuickBooks might prefill it with the date of the invoice that was most recently saved.","format":"date","type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"balance_remaining":{"description":"The outstanding balance on this transaction. For an invoice, that’s (Subtotal + `sales_tax_total`) + the invoice’s `applied_amount`, which comes back negative (observed on QuickBooks Enterprise 24.0).","type":"number"},"suggested_discount_date":{"description":"The date when `suggested_discount_amount` would apply.","format":"date","type":"string"},"balance_remaining_in_home_currency":{"description":"Balance remaining in units of the home currency.","type":"number"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"}},"title":"InvoiceRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createDeposit_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"cash_back_info_ret":{"description":"This aggregate is included if there is cash back from this deposit. `account_ref` indicates where the cash back Amount is going (for example, into a petty cash account).","properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"memo":{"description":"Additional information.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"deposit_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"check_number":{"description":"The check number of a check that a QuickBooks user writes or receives from someone else.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In JournalCreditLine and JournalDebitLine messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"payment_txn_line_id":{"description":"For the `payment_txn_line_id`, use a `txn_line_id` value exactly as it has been returned by the ReceivePaymentToDepositQuery request. If you don’t include a `payment_txn_line_id` and include a `payment_txn_id` for a transaction that includes payment lines, only the first payment line from that transaction will be deposited.","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"deposit_total":{"description":"The sum of all the deposited amounts.","type":"number"},"deposit_total_in_home_currency":{"description":"Amount of the deposit in units of the home currency.","type":"number"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"memo":{"description":"Additional information.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"DepositRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createSalesTaxPaymentCheck_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"address":{"description":"If an address request fails, some combination of address fields might be too long. In a Check, BillPaymentCheck, or SalesTaxPaymentCheck message, Address is the address that will print on the check.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"bank_account_ref":{"description":"Refers to the account from which the funds are being drawn for this check, for example, Checking or Savings. If a `bank_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_payment_check_line_ret":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"SalesTaxPaymentCheckRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listCompanyActivities_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"last_condense_time":{"description":"The date and time when the company file was condensed. When QuickBooks condenses a company file, it deletes all the transactions that are no longer needed to keep records current, replacing them with new transactions that summarize the deleted transactions by month.","format":"date-time","type":"string"},"last_restore_time":{"description":"The date and time when the company file was last restored from a back up. If it has never been restored, the default date of 1970-01-01 (UTC) will be returned. (For example, 1970-01-01 will be represented as 1969-12-31T16:00:00-08:00 in a time zone that is eight hours behind UTC.)","format":"date-time","type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowPromptField":{"description":"What to fill in before picking a choice: one input per field, sent back in the decision's `data` under `name`. A `record` field is filled from a search (`GET links.search?field=<name>&q=...`), with the `value` the search returned: never a ListID typed or picked by your app. A `rows` field is a table (docs: the question about missing records): one row per entry of `rows`, a column per entry of `columns` the row asks (`rows[].columns`) and that applies to it as answered so far (the column's `when`), answered as an object keyed by each row's `key`, each an object of its columns' values.","properties":{"columns":{"description":"Only for `rows`: what each row is asked, in order. Every row shares them, so your screen can set one column on many rows at once.","items":{"$ref":"#/components/schemas/WorkflowPromptColumn"},"type":"array"},"enum":{"description":"Only when the field takes one of a fixed list: the values, each with what a person reads for it. A value outside it is refused (`422 invalid_data`).","items":{"$ref":"#/components/schemas/WorkflowPromptEnumValue"},"type":"array"},"kind":{"description":"Only for `record`: the list the search looks in, such as `customer`, `entity`, `item` or `account`.","example":"customer","type":"string"},"label":{"description":"What the input says.","example":"New name","type":"string"},"name":{"description":"The key in the decision's `data`.","example":"name","type":"string"},"required":{"description":"Whether the choice is refused (`422 missing_fields`) without it.","type":"boolean"},"rows":{"description":"Only for `rows`: the rows, at most 100. Answer every one.","items":{"$ref":"#/components/schemas/WorkflowPromptRow"},"type":"array"},"type":{"description":"`string`, `number` and `boolean` are what a person types or ticks (a drop-down of `enum`, when there is one); `record` is a record of `kind` found with the run's search; `rows` is a table of `rows` and `columns`.","enum":["string","number","boolean","record","rows"],"type":"string"}},"required":["name","type","label","required"],"type":"object"},"listVehicles_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"desc":{"description":"A descriptive text field.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listPayrollLastPeriods_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"period_end_date":{"format":"date","type":"string"},"period_start_date":{"format":"date","type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateItemDiscount_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"not":{"anyOf":[{"required":["discount_rate","discount_rate_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"discount_rate":{"description":"The discount rate when it is given as a monetary amount. `discount_rate` will be subtracted from a total or subtotal.\n\nChoose at most one of: `discount_rate`, or `discount_rate_percent`.","type":"number"},"discount_rate_percent":{"description":"The discount rate when it is given as a percent. `discount_rate_percent` will be subtracted from a total or subtotal.\n\nChoose at most one of: `discount_rate`, or `discount_rate_percent`.","type":"number"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"ItemDiscountRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createPayrollItemTax_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"edit_sequence":{"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_active":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"type":"object"},"limit":{"type":"number"},"list_id":{"type":"string"},"name":{"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_change":{"items":{"properties":{"rate_percent":{"type":"number"},"sunset_date":{"format":"date","type":"string"}},"type":"object"},"type":"array"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"state":{"type":"string"},"tax_calculated_based_on":{"enum":["Compensation","HoursAll","HoursWorked","Quantity"],"type":"string"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"w2_tracking_type_value":{"type":"integer"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listItems_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"oneOf":[{"not":{"anyOf":[{"required":["sales_or_purchase","sales_and_purchase"]}]},"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_and_purchase":{"description":"A `sales_and_purchase` aggregate is used for items that are meant to be both purchased and sold, such as an “other charge” item that is reimbursable.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","properties":{"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"sales_or_purchase":{"description":"A `sales_or_purchase` aggregate is used for items that are meant to be either purchased or sold, but not both. For example, a `sales_or_purchase` aggregate would be used for a non-inventory item that is purchased but not sold, or for a service item that is sold but not purchased.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","not":{"anyOf":[{"required":["price","price_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"price":{"description":"The purchase price or sales price of this item.\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"},"price_percent":{"description":"The price expressed as a percent. (For example, an auto shop that calculates the cost of labor as a percentage of the cost of parts might have a service item called “Labor” that uses `price_percent` instead of Price.)\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"type":{"const":"item_service","description":"Which record type this is; the query answers with several."},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["type"],"title":"ItemServiceRet","type":"object"},{"not":{"anyOf":[{"required":["sales_or_purchase","sales_and_purchase"]}]},"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_and_purchase":{"description":"A `sales_and_purchase` aggregate is used for items that are meant to be both purchased and sold, such as an “other charge” item that is reimbursable.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","properties":{"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"sales_or_purchase":{"description":"A `sales_or_purchase` aggregate is used for items that are meant to be either purchased or sold, but not both. For example, a `sales_or_purchase` aggregate would be used for a non-inventory item that is purchased but not sold, or for a service item that is sold but not purchased.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","not":{"anyOf":[{"required":["price","price_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"price":{"description":"The purchase price or sales price of this item.\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"},"price_percent":{"description":"The price expressed as a percent. (For example, an auto shop that calculates the cost of labor as a percentage of the cost of parts might have a service item called “Labor” that uses `price_percent` instead of Price.)\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"type":{"const":"item_non_inventory","description":"Which record type this is; the query answers with several."},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["type"],"title":"ItemNonInventoryRet","type":"object"},{"not":{"anyOf":[{"required":["sales_or_purchase","sales_and_purchase"]}]},"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_and_purchase":{"description":"A `sales_and_purchase` aggregate is used for items that are meant to be both purchased and sold, such as an “other charge” item that is reimbursable.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","properties":{"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"sales_or_purchase":{"description":"A `sales_or_purchase` aggregate is used for items that are meant to be either purchased or sold, but not both. For example, a `sales_or_purchase` aggregate would be used for a non-inventory item that is purchased but not sold, or for a service item that is sold but not purchased.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","not":{"anyOf":[{"required":["price","price_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"price":{"description":"The purchase price or sales price of this item.\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"},"price_percent":{"description":"The price expressed as a percent. (For example, an auto shop that calculates the cost of labor as a percentage of the cost of parts might have a service item called “Labor” that uses `price_percent` instead of Price.)\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"special_item_type":{"description":"Identifies the type of special item. See type for possible enum values.","enum":["FinanceCharge","ReimbursableExpenseGroup","ReimbursableExpenseSubtotal"],"type":"string"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"type":{"const":"item_other_charge","description":"Which record type this is; the query answers with several."}},"required":["type"],"title":"ItemOtherChargeRet","type":"object"},{"properties":{"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"average_cost":{"description":"`average_cost` is the total value of this item divided by `quantity_on_hand`. Initially the total value is the same as the `quantity_on_hand` times the `purchase_cost` (so `average_cost` equals `purchase_cost`). However, the total value can be changed by an inventory adjustment so that it no longer matches `quantity_on_hand` times `purchase_cost`.","type":"number"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"quantity_on_sales_order":{"description":"The number of these items that have been sold (as recorded in sales orders) but not delivered to customers.","type":"number"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"type":{"const":"item_inventory","description":"Which record type this is; the query answers with several."},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_price":{"description":"Price charged for this item.","type":"number"},"quantity_on_order":{"description":"The number of these items that have been ordered from vendors (as recorded in purchase orders) but not received.","type":"number"},"quantity_on_hand":{"description":"The number of these items in inventory. `quantity_on_hand` times `average_cost` is TotalValue in an inventory item list. To change the `quantity_on_hand` for an item, you would have to use InventoryAdjustmentAdd not an ItemInventoryMod.","type":"number"},"reorder_point":{"description":"Quantity at which QuickBooks will remind the user to reorder this inventory item.","type":"number"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"max":{"description":"Maximum number of items in inventory.","type":"number"},"asset_account_ref":{"description":"Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"cogs_account_ref":{"description":"Refers to the account that QuickBooks uses to track the original cost of goods that are eventually sold. (The AccountType of this account will be CostOfGoodsSold.) In a request, if a `cogs_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["type"],"title":"ItemInventoryRet","type":"object"},{"properties":{"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"average_cost":{"description":"`average_cost` is the total value of this item divided by `quantity_on_hand`. Initially the total value is the same as the `quantity_on_hand` times the `purchase_cost` (so `average_cost` equals `purchase_cost`). However, the total value can be changed by an inventory adjustment so that it no longer matches `quantity_on_hand` times `purchase_cost`.","type":"number"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"quantity_on_sales_order":{"description":"The number of these items that have been sold (as recorded in sales orders) but not delivered to customers.","type":"number"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"type":{"const":"item_inventory_assembly","description":"Which record type this is; the query answers with several."},"item_inventory_assembly_line":{"items":{"properties":{"item_inventory_ref":{"description":"An inventory item is any merchandise or part that a business purchases, tracks as inventory, and then resells. In QuickBooks, information about an inventory item is grouped into three categories:Puchase Information includes `purchase_desc`, `purchase_cost`, `cogs_account_ref`, and `pref_vendor_ref`. Sales Information includes `sales_desc`, `sales_price`, and `sales_tax_code_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"}},"type":"object"},"type":"array"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_price":{"description":"Price charged for this item.","type":"number"},"quantity_on_order":{"description":"The number of these items that have been ordered from vendors (as recorded in purchase orders) but not received.","type":"number"},"quantity_on_hand":{"description":"The number of these items in inventory. `quantity_on_hand` times `average_cost` is TotalValue in an inventory item list. To change the `quantity_on_hand` for an item, you would have to use InventoryAdjustmentAdd not an ItemInventoryMod.","type":"number"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"build_point":{"description":"The build notification point. The QuickBooks user will receive a notification when `quantity_on_hand` plus `quantity_on_order` falls below `build_point`.","type":"number"},"max":{"description":"Maximum number of items in inventory.","type":"number"},"asset_account_ref":{"description":"Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"cogs_account_ref":{"description":"Refers to the account that QuickBooks uses to track the original cost of goods that are eventually sold. (The AccountType of this account will be CostOfGoodsSold.) In a request, if a `cogs_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["type"],"title":"ItemInventoryAssemblyRet","type":"object"},{"properties":{"acquired_as":{"description":"Indicates whether this item was new or used when the business acquired it.","enum":["New","Old"],"type":"string"},"asset_account_ref":{"description":"Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"asset_desc":{"description":"Description of the asset—maker, brand, and so on.","type":"string"},"asset_number":{"description":"The number used by the QuickBooks Fixed Asset Manager to identify this asset.","type":"string"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost_basis":{"description":"The total cost of the fixed asset. This can include the cost of improvements or repairs. This amount is used to figure depreciation.","type":"number"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"fixed_asset_sales_info":{"description":"Sales information, if this fixed asset was sold.","properties":{"sales_date":{"description":"Date when a fixed asset was sold.","format":"date","type":"string"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_expense":{"description":"Any expenses that were incurred during the sale of a fixed asset.","type":"number"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"location":{"description":"Where the asset is located or has been placed into service.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"notes":{"description":"Additional information.","type":"string"},"po_number":{"description":"Purchase order number.","type":"string"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_date":{"description":"The date when this asset was purchased.","format":"date","type":"string"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"serial_number":{"description":"The serial number of the asset.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"type":{"const":"item_fixed_asset","description":"Which record type this is; the query answers with several."},"vendor_or_payee_name":{"description":"The name of the vendor from whom this asset was purchased.","type":"string"},"warranty_exp_date":{"description":"The date when the warranty for this asset expires.","format":"date","type":"string"},"year_end_accumulated_depreciation":{"description":"The amount the fixed asset has lost in value since it was purchased, as of the end of the year.","type":"number"},"year_end_book_value":{"description":"A reasonable estimate of the sales value of the fixed asset, as of the end of the year.","type":"number"}},"required":["type"],"title":"ItemFixedAssetRet","type":"object"},{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"special_item_type":{"description":"Identifies the type of special item. See type for possible enum values.","enum":["FinanceCharge","ReimbursableExpenseGroup","ReimbursableExpenseSubtotal"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"type":{"const":"item_subtotal","description":"Which record type this is; the query answers with several."}},"required":["type"],"title":"ItemSubtotalRet","type":"object"},{"not":{"anyOf":[{"required":["discount_rate","discount_rate_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"discount_rate":{"description":"The discount rate when it is given as a monetary amount. `discount_rate` will be subtracted from a total or subtotal.\n\nChoose at most one of: `discount_rate`, or `discount_rate_percent`.","type":"number"},"discount_rate_percent":{"description":"The discount rate when it is given as a percent. `discount_rate_percent` will be subtracted from a total or subtotal.\n\nChoose at most one of: `discount_rate`, or `discount_rate_percent`.","type":"number"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"type":{"const":"item_discount","description":"Which record type this is; the query answers with several."}},"required":["type"],"title":"ItemDiscountRet","type":"object"},{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"type":{"const":"item_payment","description":"Which record type this is; the query answers with several."}},"required":["type"],"title":"ItemPaymentRet","type":"object"},{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"sales_tax_return_line_ref":{"description":"Sales tax return line information.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_rate":{"description":"The tax rate. If a nonzero `tax_rate` is specified, then `tax_vendor_ref` is required.","type":"number"},"tax_vendor_ref":{"description":"Refers to the tax agency to whom collected taxes are owed. (This will be a vendor on the Vendor list.) If a nonzero `tax_rate` is specified, then `tax_vendor_ref` is required. In a request, if a `tax_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"type":{"const":"item_sales_tax","description":"Which record type this is; the query answers with several."}},"required":["type"],"title":"ItemSalesTaxRet","type":"object"},{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"item_sales_tax_ref":{"items":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"type":"array"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"type":{"const":"item_sales_tax_group","description":"Which record type this is; the query answers with several."}},"required":["type"],"title":"ItemSalesTaxGroupRet","type":"object"},{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"item_group_line":{"items":{"properties":{"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"special_item_type":{"description":"Identifies the type of special item. See type for possible enum values.","enum":["FinanceCharge","ReimbursableExpenseGroup","ReimbursableExpenseSubtotal"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"type":{"const":"item_group","description":"Which record type this is; the query answers with several."},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["type"],"title":"ItemGroupRet","type":"object"}]},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listSalesReceipts_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"discount_line_ret":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"is_taxable":{"type":"boolean"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"sales_receipt_line_ret":{"description":"One line of the sales receipt. Compare with SalesReceiptLineGroup, which represents a previously defined group of lines in the sales receipt.\n\n`sales_receipt_line_ret` and `sales_receipt_line_group_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"sales_tax_percentage":{"description":"The percentage charged for sales tax.","type":"number"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the home currency.","type":"number"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"sales_receipt_line_group_ret":{"description":"Represents a previously defined group of lines in the sales receipt. Compare with SalesReceiptLine, which represents just one line in the sales receipt.\n\n`sales_receipt_line_ret` and `sales_receipt_line_group_ret` combine: any number of each.","items":{"properties":{"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_receipt_line_ret":{"description":"One line of the sales receipt. Compare with SalesReceiptLineGroup, which represents a previously defined group of lines in the sales receipt.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"total_amount":{"description":"Subtotal plus `sales_tax_total`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"is_pending":{"description":"If `is_pending` is set to true, the sales receipt hasn’t been completed. Pending sales might include unpaid orders, estimates, tracked hours that haven’t yet been billed, or sales of back-ordered items.","type":"boolean"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"check_number":{"description":"The check number of a check that a QuickBooks user writes or receives from someone else.","type":"string"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bill_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"A sales receipt doesn’t ordinarily include a due date, because sales receipts are generally used for point-of-sale payments, where full payment is received at the time of purchase.","format":"date","type":"string"},"subtotal":{"description":"The total of all the sales-receipt lines before taxes are applied. (By contrast, a subtotal item (an ItemSubtotal object) gives only the total of the amounts in the lines that appear above it.)","type":"number"},"sales_tax_total":{"description":"The total amount of sales tax charged.","type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_line_ret":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"shipping_line_ret":{"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"}},"type":"object"},"memo":{"description":"Message that appears in reports, but not on the sales receipt.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the sales receipt. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"total_amount":{"description":"Subtotal plus `sales_tax_total`.","type":"number"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createVendorType_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"VendorTypeRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowRun":{"properties":{"cancel_reason":{"description":"Why the run was cancelled, when a reason was given.","nullable":true,"type":"string"},"connection_id":{"format":"uuid","type":"string"},"current_state":{"description":"Where the run is: the leaf state path, and while a workflow it calls is running, on into that workflow -- `<calling state> / <state in the called workflow>`, such as `create_customer / resolve_conflict.find_holder`. Null once it has ended.","example":"create_customer / resolve_conflict.find_holder","nullable":true,"type":"string"},"error":{"allOf":[{"$ref":"#/components/schemas/WorkflowRunError"}],"description":"What failed it, once it has; null otherwise.","nullable":true},"headline":{"description":"What happened, in one plain sentence for a person: how it ended once it has (the workflow's own sentence for its outcome), the question's message while it asks. Never parse it.","example":"Created Riverbend Electric in QuickBooks.","type":"string"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"description":"`self` (this run), `decisions` (answer a question), `search` (find the record a question's `record` field means), `cancel` (stop the run) and `ui` (the run in QuBeSync).","properties":{"cancel":{"format":"uri","type":"string"},"decisions":{"description":"Where to answer. While the run is `awaiting_input`, it carries the current prompt's `token` as `?prompt_token=`, so an answer POSTed to it can only answer that question: once the run has asked again it is refused with `409 prompt_changed`.","format":"uri","type":"string"},"search":{"description":"Where a `record` field of the question is searched: set only while the run is `awaiting_input` with a choice that has one, which only a realtime or simulated connection (with a name index) offers, and null otherwise. It carries the prompt's `token` as `?prompt_token=`, like `decisions`; add `field` and `q`.","format":"uri","nullable":true,"type":"string"},"self":{"format":"uri","type":"string"},"ui":{"format":"uri","type":"string"}},"type":"object"},"outcome":{"description":"How the run ended, once it has. With state completed: completed, or a success the workflow declares (such as cancelled) -- it worked as designed and this is how it ended. With state failed: failed, or a failure the workflow declares (such as customer_over_limit) -- something needs attention, and this names what. Null while the run is still going.","nullable":true,"type":"string"},"output":{"nullable":true,"type":"object"},"prompt":{"description":"Present while awaiting_input: `id` (the question's id, as the workflow's contract lists it -- its path from this run, `<calling state> / <wait state>`, when a workflow this one calls asked), `token` (new each time the run asks; send it back as the decision's `prompt_token`), `kind`, message, data, details, the options and the choices to pick from. `details` (label and value rows: what it is about) and `choices` (everything the person can pick, in order, each with its `fields`) are what to render: every question is shown and answered the same way, by `choice` (each choice's `role` says how to weigh it: `pick`, `search`, `decline`, `cancel` or `answer`), and `options` stays for a chart's own code. `from` is set when a workflow this one calls asked the question: `workflow` (its key) and `state` (its own wait state) -- that workflow runs as part of this run, so answer it here either way. When the asking workflow runs once per item of a list, `from` also carries `item_index` (0-based) and `item_count`. `kind` says who asked: `decision` for a `wait` state's own question, `conflict` when the engine asks about an update that met a stale edit sequence (someone changed the record in QuickBooks after the run read it, error 3200) and the state's `on_conflict` is `ask`, its default. A conflict prompt's `id` is `conflict:<state>` (prefixed like any question when a workflow this one calls asked), `state` is the request state that sent the update, and `data` carries `operation` (the update, e.g. `customer.update`), `sent` (the fields it carries, without its id and edit sequence), `current` (the record QuickBooks has now, with its edit sequence), `as_read` (the record as the run last read it, or null when it never read it), `conflicts` (one `{field, sent, current, as_read}` row per field being updated that someone else changed too) and `theirs` (one `{field, as_read, current}` row per field they changed that the update does not touch; empty when `as_read` is null). Its options are fixed: `overwrite` re-sends with the current edit sequence -- the original fields, or `data.params` (an object, optional) in their place -- and `keep` carries on with the record as QuickBooks has it.","nullable":true,"properties":{"choices":{"description":"Everything the person can pick, in order, at most 26: render one button (and its fields) per choice, and POST the picked one's `id` as `choice`. Built when the run asks, from `options`: a plain option is one choice with its id; an option whose field picks from a list is one choice per item (`use:1`, `use:2`, ..., at most 25), its value filled in by QuBe Sync; a field searched from the name index adds a search choice (`links.search`). Show these rather than `options`: every question is rendered and answered the same way.","items":{"$ref":"#/components/schemas/WorkflowPromptChoice"},"maxItems":26,"type":"array"},"details":{"description":"What the question is about, as label and value rows to show under `message`, at most 20: the name and kind, a transaction's number, the operation; for a conflict, one row per field that differs (`yours … · theirs …`). Built when the run asks.","items":{"$ref":"#/components/schemas/WorkflowPromptDetail"},"maxItems":20,"type":"array"},"kind":{"description":"decision: a wait state's own question. conflict: the engine asks about an update that met a stale edit sequence; see the prompt's description.","enum":["decision","conflict"],"type":"string"},"token":{"description":"This asking of the question: new every time the run asks, the same question asked again included (a `wait` in a loop, a workflow called once per item, another conflict). Send it as the decision's `prompt_token`, and an answer that arrives after the run has asked again is refused instead of taken for the new question. Opaque: compare it only for equality.","type":"string"}},"type":"object"},"reference":{"description":"Your own label for the run, exactly as you sent it when you started it; null if you sent none.","nullable":true,"type":"string"},"revision":{"description":"1 when the run starts, and higher with every change to it: its state, its question, where it is, its result. Every body of the run carries it -- this one, the start and decision responses, every webhook -- so of two you hold, the higher revision is the newer: keep the highest you have applied and skip a body whose revision isn't higher. While a workflow the run calls is running, `current_state` can move on into it without a new revision.","minimum":1,"type":"integer"},"state":{"description":"running means it is working -- a QuickBooks request is in flight, or a workflow it calls is running as part of it; awaiting_input means it needs a decision from you, whichever part of it asked. cancelled means somebody stopped it (`POST .../cancel`); `outcome` stays null and `cancel_reason` says why, when they said.","enum":["running","awaiting_input","completed","failed","cancelled"],"type":"string"},"summary":{"allOf":[{"$ref":"#/components/schemas/WorkflowRunSummary"}],"description":"Set once the run has ended (completed, failed or cancelled): what it did. Null while it is going.","nullable":true},"trace":{"items":{"properties":{"at":{"format":"date-time","type":"string"},"event":{"nullable":true,"type":"string"},"from":{"nullable":true,"type":"string"},"to":{"type":"string"}},"type":"object"},"type":"array"},"vars":{"type":"object"},"workflow":{"description":"The key of the workflow this is a run of. Still set when that workflow has been deleted: the run is kept, readable by its id until retention removes it.","type":"string"}},"type":"object"},"listInventoryAdjustments_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"inventory_adjustment_line_ret":{"items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]},{"required":["serial_number_added_or_removed","lot_number"]}]},"properties":{"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: the set (`serial_number`, `serial_number_added_or_removed`), or `lot_number`. Members of a set combine with each other, not with the other choices.","type":"string"},"quantity_difference":{"description":"Either a positive or negative number that shows the change in quantity for this inventory item.","type":"number"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: the set (`serial_number`, `serial_number_added_or_removed`), or `lot_number`. Members of a set combine with each other, not with the other choices.","type":"string"},"serial_number_added_or_removed":{"description":"Serial number that was added or removed from inventory.\n\nChoose at most one of: the set (`serial_number`, `serial_number_added_or_removed`), or `lot_number`. Members of a set combine with each other, not with the other choices.","enum":["Added","Removed"],"type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"value_difference":{"description":"Either a positive or negative number that shows a change in the total value of the entire stock of this inventory item.","type":"number"}},"type":"object"},"type":"array"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updatePayrollItemWorkersCompensation_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"edit_sequence":{"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_active":{"type":"boolean"},"is_tracked_by_cust_job":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"type":"object"},"list_id":{"type":"string"},"name":{"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_detail_type_value":{"type":"integer"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowTemplateSummary":{"properties":{"description":{"nullable":true,"type":"string"},"installs":{"description":"The other templates installing this one would also create, because its chart calls them.","items":{"type":"string"},"type":"array"},"key":{"type":"string"},"links":{"description":"`self` (the template, with its chart), `usage` (its usage contract, before it's installed) and `install`.","type":"object"},"name":{"type":"string"}},"type":"object"},"createItemFixedAsset_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"acquired_as":{"description":"Indicates whether this item was new or used when the business acquired it.","enum":["New","Old"],"type":"string"},"asset_account_ref":{"description":"Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"asset_desc":{"description":"Description of the asset—maker, brand, and so on.","type":"string"},"asset_number":{"description":"The number used by the QuickBooks Fixed Asset Manager to identify this asset.","type":"string"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost_basis":{"description":"The total cost of the fixed asset. This can include the cost of improvements or repairs. This amount is used to figure depreciation.","type":"number"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"fixed_asset_sales_info":{"description":"Sales information, if this fixed asset was sold.","properties":{"sales_date":{"description":"Date when a fixed asset was sold.","format":"date","type":"string"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_expense":{"description":"Any expenses that were incurred during the sale of a fixed asset.","type":"number"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"location":{"description":"Where the asset is located or has been placed into service.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"notes":{"description":"Additional information.","type":"string"},"po_number":{"description":"Purchase order number.","type":"string"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_date":{"description":"The date when this asset was purchased.","format":"date","type":"string"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"serial_number":{"description":"The serial number of the asset.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"vendor_or_payee_name":{"description":"The name of the vendor from whom this asset was purchased.","type":"string"},"warranty_exp_date":{"description":"The date when the warranty for this asset expires.","format":"date","type":"string"},"year_end_accumulated_depreciation":{"description":"The amount the fixed asset has lost in value since it was purchased, as of the end of the year.","type":"number"},"year_end_book_value":{"description":"A reasonable estimate of the sales value of the fixed asset, as of the end of the year.","type":"number"}},"title":"ItemFixedAssetRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createPayrollItemDeduction_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"calculated_based_on":{"enum":["HoursAll","HoursWorked","Quantity","Rate"],"type":"string"},"edit_sequence":{"type":"string"},"is_active":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"type":"object"},"limit":{"type":"number"},"limit_time_period":{"enum":["Annual","Forever"],"type":"string"},"list_id":{"type":"string"},"name":{"type":"string"},"net_or_gross":{"enum":["Gross","Net"],"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"taxability":{"items":{"properties":{"is_tax_applied":{"type":"boolean"},"payroll_item_tax_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"w2_tracking_type_value":{"type":"integer"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createVehicleMileage_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"billable_amount":{"description":"In a billable vehicle mileage transaction, refers to the total charge that QuickBooks calculates by multiplying the trip total mileage by the rate specified in the item referenced by the `item_ref`.","type":"number"},"billable_rate":{"description":"In a billable vehicle mileage transaction, refers to the rate being used to charge mileage against a customer. The rate is specified in the service item or other charge item that is referenced in the `item_ref` field of the VehicleMileageAdd request.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"notes":{"description":"Additional information.","type":"string"},"odometer_end":{"description":"Odometer reading at the end of the trip. `odometer_start` and `odometer_end` must both be specified if `total_miles` isn’t specified. QuickBooks will calculate the total trip miles from these two values. If `total_miles` is specified, you can’t specify `odometer_start` and `odometer_end`.","type":"number"},"odometer_start":{"description":"Odometer reading at the start of the trip. `odometer_start` and `odometer_end` must both be specified if `total_miles` isn’t specified. QuickBooks will calculate the total trip miles from these two values. If `total_miles` is specified, you can’t specify `odometer_start` and `odometer_end`.","type":"number"},"standard_mileage_rate":{"description":"The mileage rate currently allowed by the tax authority (IRS) for vehicle expenses.","type":"number"},"standard_mileage_total_amount":{"description":"Amount calculated by multiplying the total trip miles in the current vehicle mileage transaction by the standard mileage rate currently in use.","type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"total_miles":{"description":"Total trip miles. If `total_miles` is specified, you can’t specify `odometer_start` and `odometer_end`. If you use `odometer_start` and `odometer_end` instead of `total_miles`, QuickBooks will calculate the total trip miles from these two values.","type":"number"},"trip_end_date":{"description":"Date the trip ended. If left blank, the current date at the time of transaction will be used. Notice that only dates are supported for vehicle mileage, so make sure you enter any datetime values with dates only, no time values. That is, 2002-02-02 will work for trip end date or start date, but 2002-02-02T12:20:20 won’t work.","format":"date","type":"string"},"trip_start_date":{"description":"Date the trip began. If left blank, the current date at the time of transaction will be used. Notice that only dates are supported for vehicle mileage, so make sure you enter any datetime values with dates only, no time values. That is, 2002-02-02 will work for trip end date or start date, but 2002-02-02T12:20:20 won’t work.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"vehicle_ref":{"description":"A vehicle for use in VehicleMileage transactions. Each vehicle name must be unique.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"VehicleMileageRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateDataExtDef_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"assign_to_object":{"items":{"enum":["ARRefundCreditCard","Account","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","Company","CreditCardCharge","CreditCardCredit","CreditMemo","Customer","Deposit","Employee","Estimate","InventoryAdjustment","Invoice","Item","ItemReceipt","JournalEntry","OtherName","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Vendor","VendorCredit"],"type":"string"},"type":"array"},"data_ext_format_string":{"description":"The string format required for the data extension.","type":"string"},"data_ext_id":{"description":"The ID of the data extension.","type":"integer"},"data_ext_list_require":{"description":"If `data_ext_list_require` is true, this data extension field is required to be entered in lists. The default value is false.","type":"boolean"},"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_txn_require":{"description":"If `data_ext_txn_require` is true, this data extension field is required to be entered in transaction. The default value is false.","type":"boolean"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"title":"DataExtDefRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listSalesTaxCodes_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"desc":{"description":"Desc gives a longer explanation of Name.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_taxable":{"description":"Indicates whether this sales-tax code is tracking taxable sales. For any particular sales-tax code, `is_taxable` can’t be modified once the sales-tax code has been used in a transaction. If the “Do You Charge Sales Tax?” preference is set to Yes within QuickBooks, the default value of `is_taxable` is true.","type":"boolean"},"item_purchase_tax_ref":{"description":"For future use with international versions of QuickBooks.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Short name that will appear on sales forms to identify the tax status of an item. The Desc element gives a longer explanation of Name. Name must be unique, and it isn’t case-sensitive.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listItemServices_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"not":{"anyOf":[{"required":["sales_or_purchase","sales_and_purchase"]}]},"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_and_purchase":{"description":"A `sales_and_purchase` aggregate is used for items that are meant to be both purchased and sold, such as an “other charge” item that is reimbursable.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","properties":{"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"sales_or_purchase":{"description":"A `sales_or_purchase` aggregate is used for items that are meant to be either purchased or sold, but not both. For example, a `sales_or_purchase` aggregate would be used for a non-inventory item that is purchased but not sold, or for a service item that is sold but not purchased.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","not":{"anyOf":[{"required":["price","price_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"price":{"description":"The purchase price or sales price of this item.\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"},"price_percent":{"description":"The price expressed as a percent. (For example, an auto shop that calculates the cost of labor as a percentage of the cost of parts might have a service item called “Labor” that uses `price_percent` instead of Price.)\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createItemSubtotal_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"special_item_type":{"description":"Identifies the type of special item. See type for possible enum values.","enum":["FinanceCharge","ReimbursableExpenseGroup","ReimbursableExpenseSubtotal"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"ItemSubtotalRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3040,3070,3100,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_amount","string_too_long","name_in_use","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listBudgetSummaryReports_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"col_desc":{"items":{"properties":{"col_id":{"description":"An identifying number that corresponds to the position of this column in the report. The columns are numbered from left to right, starting with 1.","type":"integer"},"col_title":{"items":{"type":"string"},"type":"array"},"col_type":{"description":"The type of data that this column contains. `col_type` values are formatted types. (Returned ctPercent values, for example, will have digits after the decimal points, and ctAddr1 values will be strings.)","enum":["Account","Addr1","Addr2","Addr3","Addr4","Addr5","Aging","Amount","AmountDifference","AverageCost","BilledDate","BillingStatus","Blank","CalculatedAmount","Class","ClearedStatus","CostPrice","CreateDate","Credit","CustomField","Date","Debit","DeliveryDate","DueDate","Duration","EarliestReceiptDate","EstimateActive","FOB","IncomeSubjectToTax","Invoiced","IsAdjustment","Item","ItemDesc","ItemVendor","Label","LastModifiedBy","LatestOrPriorState","Memo","ModifiedTime","Name","NameAccountNumber","NameAddress","NameCity","NameContact","NameEmail","NameFax","NamePhone","NameState","NameZip","OpenBalance","OriginalAmount","PONumber","PaidAmount","PaidStatus","PaidThroughDate","PaymentMethod","PayrollItem","Percent","PercentChange","PercentOfTotalRetail","PercentOfTotalValue","PhysicalCount","PrintStatus","ProgressAmount","ProgressPercent","Quantity","QuantityAvailable","QuantityOnHand","QuantityOnOrder","QuantityOnPendingBuild","QuantityOnSalesOrder","ReceivedQuantity","RefNumber","ReorderPoint","RetailValueOnHand","RunningBalance","SONumber","SSNOrTaxID","SalesPerWeek","SalesRep","SalesTaxCode","ShipDate","ShipMethod","ShipToAddr1","ShipToAddr2","ShipToAddr3","ShipToAddr4","ShipToAddr5","SourceName","SplitAccount","SuggestedReorder","TaxLine","TaxTableVersion","Terms","Total","TxnID","TxnNumber","TxnType","UnitPrice","UserEdit","ValueOnHand","WageBase","WageBaseTips"],"type":"string"},"data_type":{"description":"The data type: IDTYPE, STRTYPE, and so on.","enum":["AMTTYPE","BOOLTYPE","DATETIMETYPE","DATETYPE","ENUMTYPE","GUIDTYPE","IDTYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STRTYPE","TIMEINTERVALTYPE"],"type":"string"}},"type":"object"},"type":"array"},"num_col_title_rows":{"description":"The number of rows to allocate for column titles. Although this number is usually 1, with some reports it is 2 or 3. (For an example of column titles that span multiple rows, look at a ProfitAndLossByJob report in QuickBooks.)","type":"integer"},"num_columns":{"description":"The number of columns in the report.","type":"integer"},"num_rows":{"description":"The number of rows in the report.","type":"integer"},"report_basis":{"description":"If `report_basis` is rbCash, the report bases income and expenses on the dates when money changed hands.rbAccrual, the report bases income on the dates when customers were invoiced and bases expenses on the dates when bills were entered.rbNone, the report uses the default `report_basis`, which is either the QuickBooks Preference setting or the QuickBooks default for a given type of report.","enum":["Accrual","Cash","None"],"type":"string"},"report_data":{"description":"If the report contains any data, it is given row-by-row in a `report_data` aggregate.","properties":{"data_row":{"description":"A data row contains the actual data for each column.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"subtotal_row":{"description":"A row that contains a calculated subtotal of the data in all the rows since the last SubTotalRow and, usually, a single underline. There can be multiple SubTotalRow aggregates in a report.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"text_row":{"description":"A text row contains only text and is used mainly for headings.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"type":"string"},"type":"array"},"total_row":{"description":"A row that contains a calculated total of all the data that has come before and a double underline. There will only be one `total_row` per report. If `total_row` doesn’t include any numerical values, the columns required to show the total values aren’t part of the report. These columns weren’t included when the report was customized.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"}},"type":"object"},"report_subtitle":{"description":"The subtitle for this report.","type":"string"},"report_title":{"description":"The main title for this report.","type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createSpecialItem_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"not":{"anyOf":[{"required":["sales_or_purchase","sales_and_purchase"]}]},"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_and_purchase":{"description":"A `sales_and_purchase` aggregate is used for items that are meant to be both purchased and sold, such as an “other charge” item that is reimbursable.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","properties":{"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"sales_or_purchase":{"description":"A `sales_or_purchase` aggregate is used for items that are meant to be either purchased or sold, but not both. For example, a `sales_or_purchase` aggregate would be used for a non-inventory item that is purchased but not sold, or for a service item that is sold but not purchased.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","not":{"anyOf":[{"required":["price","price_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"price":{"description":"The purchase price or sales price of this item.\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"},"price_percent":{"description":"The price expressed as a percent. (For example, an auto shop that calculates the cost of labor as a percentage of the cost of parts might have a service item called “Labor” that uses `price_percent` instead of Price.)\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"special_item_type":{"description":"Identifies the type of special item. See type for possible enum values.","enum":["FinanceCharge","ReimbursableExpenseGroup","ReimbursableExpenseSubtotal"],"type":"string"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"ItemOtherChargeRet","type":"object"},{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"special_item_type":{"description":"Identifies the type of special item. See type for possible enum values.","enum":["FinanceCharge","ReimbursableExpenseGroup","ReimbursableExpenseSubtotal"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"ItemSubtotalRet","type":"object"},{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"item_group_line":{"items":{"properties":{"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"special_item_type":{"description":"Identifies the type of special item. See type for possible enum values.","enum":["FinanceCharge","ReimbursableExpenseGroup","ReimbursableExpenseSubtotal"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"ItemGroupRet","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3040,3070,3100,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_amount","string_too_long","name_in_use","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"Connection":{"properties":{"app_id":{"format":"uuid","type":"string"},"backing_off":{"description":"`true` while the Web Connector's last tries couldn't open QuickBooks (on that computer it's closed, or a dialog is open) and QuBe Sync is spacing its tries out, up to 30 minutes apart. `next_check_in_expected_at` is the next try. It ends at the first session that reaches QuickBooks, and clicking Update Selected in the Web Connector tries straight away.","type":"boolean"},"company_file":{"nullable":true,"type":"string"},"created_at":{"description":"When the connection was made. With `last_connected_at` still `null`, it has never connected.","format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"last_connected_at":{"format":"date-time","nullable":true,"type":"string"},"links":{"properties":{"company_file":{"description":"Send the user here to switch this connection to another QuickBooks company file. The page shows any pending work on the old company file and lets them wait for it to finish or switch immediately; switching sends `connection.company_file_changed`. It carries the onboarding link's token, so it expires with `links.onboarding`, and Regenerate the onboarding URL renews both. Before the connection has been set up, or while it's being set up again, it opens the onboarding page. `null` for a `simulated` connection, and when `links.onboarding` is.","example":"https://qubesync.com/onboarding/2c8f0e4b6a1d9c3e/company-file","format":"uri","nullable":true,"type":"string"},"onboarding":{"description":"Send the user here to connect QuickBooks, or to set the connection up again. `null` if never generated.","example":"https://qubesync.com/onboarding/2c8f0e4b6a1d9c3e","format":"uri","nullable":true,"type":"string"},"self":{"format":"uri","type":"string"},"ui":{"description":"This connection in the QuBe Sync dashboard.","format":"uri","type":"string"}},"required":["self","ui"],"type":"object"},"name":{"nullable":true,"type":"string"},"name_index":{"$ref":"#/components/schemas/NameIndex"},"next_check_in_expected_at":{"description":"When the Web Connector is next expected to check in and pick up queued requests, worked out from its last check-in, its schedule and any wait QuBe Sync gave it: every 10 seconds for `realtime`, every 5 minutes for `standard`, up to 30 minutes apart while `backing_off`, and slower while a sandbox app's `realtime` connection has nothing to do (`next_check_in_reason`). A request queued now is picked up then. `null` before the first check-in, and for a `simulated` connection that isn't backing off, since it runs as soon as a request is queued. A time more than a minute past means the check-in is late: a long session is still running (one of your requests is `sent`), or the Web Connector isn't running on the QuickBooks computer.","format":"date-time","nullable":true,"type":"string"},"next_check_in_reason":{"description":"What set `next_check_in_expected_at`. `schedule`: the connection's own pace. `backing_off`: the Web Connector's last tries couldn't open QuickBooks, as `backing_off`. `sandbox_idle`: a `realtime` connection in a sandbox app slows down while it has nothing to do, to once a minute after 10 minutes without a request and every 5 minutes after an hour; the request you queue is picked up at that next check-in, and from then it's back to every 10 seconds. Clicking Update Selected in the Web Connector runs it at once. `null` when `next_check_in_expected_at` is.","enum":["schedule","backing_off","sandbox_idle"],"nullable":true,"type":"string"},"onboarding_token_expires_at":{"format":"date-time","nullable":true,"type":"string"},"qbxml_version":{"nullable":true,"type":"string"},"quickbooks_product_name":{"nullable":true,"type":"string"},"type":{"description":"How QuickBooks is reached: `standard` (Web Connector polls every 5 minutes), `realtime` (every 10 seconds), or `simulated` (a fake QuickBooks answered by QuBe Sync itself -- connected immediately, no Web Connector -- see the CLI/Quickstart guides; in beta: it doesn't match real QuickBooks in every case yet). Workflows and name matching run on `realtime` and `simulated` connections, not on `standard` ones.","enum":["standard","realtime","simulated"],"type":"string"},"username":{"description":"Generated automatically; this is what the Web Connector authenticates as.","type":"string"},"webhook_url":{"description":"Where QuBe Sync sends the connection's own events: `connection.connected`, `connection.setup_cancelled`, `connection.company_file_changed`, `connection.stalled` and `connection.resumed` (see the callback on Create a connection). `null` when none is set, and then nothing is sent.","format":"uri","nullable":true,"type":"string"}},"required":["id","app_id","username","type","links"],"type":"object"},"listJobReports_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"col_desc":{"items":{"properties":{"col_id":{"description":"An identifying number that corresponds to the position of this column in the report. The columns are numbered from left to right, starting with 1.","type":"integer"},"col_title":{"items":{"type":"string"},"type":"array"},"col_type":{"description":"The type of data that this column contains. `col_type` values are formatted types. (Returned ctPercent values, for example, will have digits after the decimal points, and ctAddr1 values will be strings.)","enum":["Account","Addr1","Addr2","Addr3","Addr4","Addr5","Aging","Amount","AmountDifference","AverageCost","BilledDate","BillingStatus","Blank","CalculatedAmount","Class","ClearedStatus","CostPrice","CreateDate","Credit","CustomField","Date","Debit","DeliveryDate","DueDate","Duration","EarliestReceiptDate","EstimateActive","FOB","IncomeSubjectToTax","Invoiced","IsAdjustment","Item","ItemDesc","ItemVendor","Label","LastModifiedBy","LatestOrPriorState","Memo","ModifiedTime","Name","NameAccountNumber","NameAddress","NameCity","NameContact","NameEmail","NameFax","NamePhone","NameState","NameZip","OpenBalance","OriginalAmount","PONumber","PaidAmount","PaidStatus","PaidThroughDate","PaymentMethod","PayrollItem","Percent","PercentChange","PercentOfTotalRetail","PercentOfTotalValue","PhysicalCount","PrintStatus","ProgressAmount","ProgressPercent","Quantity","QuantityAvailable","QuantityOnHand","QuantityOnOrder","QuantityOnPendingBuild","QuantityOnSalesOrder","ReceivedQuantity","RefNumber","ReorderPoint","RetailValueOnHand","RunningBalance","SONumber","SSNOrTaxID","SalesPerWeek","SalesRep","SalesTaxCode","ShipDate","ShipMethod","ShipToAddr1","ShipToAddr2","ShipToAddr3","ShipToAddr4","ShipToAddr5","SourceName","SplitAccount","SuggestedReorder","TaxLine","TaxTableVersion","Terms","Total","TxnID","TxnNumber","TxnType","UnitPrice","UserEdit","ValueOnHand","WageBase","WageBaseTips"],"type":"string"},"data_type":{"description":"The data type: IDTYPE, STRTYPE, and so on.","enum":["AMTTYPE","BOOLTYPE","DATETIMETYPE","DATETYPE","ENUMTYPE","GUIDTYPE","IDTYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STRTYPE","TIMEINTERVALTYPE"],"type":"string"}},"type":"object"},"type":"array"},"num_col_title_rows":{"description":"The number of rows to allocate for column titles. Although this number is usually 1, with some reports it is 2 or 3. (For an example of column titles that span multiple rows, look at a ProfitAndLossByJob report in QuickBooks.)","type":"integer"},"num_columns":{"description":"The number of columns in the report.","type":"integer"},"num_rows":{"description":"The number of rows in the report.","type":"integer"},"report_basis":{"description":"If `report_basis` is rbCash, the report bases income and expenses on the dates when money changed hands.rbAccrual, the report bases income on the dates when customers were invoiced and bases expenses on the dates when bills were entered.rbNone, the report uses the default `report_basis`, which is either the QuickBooks Preference setting or the QuickBooks default for a given type of report.","enum":["Accrual","Cash","None"],"type":"string"},"report_data":{"description":"If the report contains any data, it is given row-by-row in a `report_data` aggregate.","properties":{"data_row":{"description":"A data row contains the actual data for each column.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"subtotal_row":{"description":"A row that contains a calculated subtotal of the data in all the rows since the last SubTotalRow and, usually, a single underline. There can be multiple SubTotalRow aggregates in a report.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"text_row":{"description":"A text row contains only text and is used mainly for headings.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"type":"string"},"type":"array"},"total_row":{"description":"A row that contains a calculated total of all the data that has come before and a double underline. There will only be one `total_row` per report. If `total_row` doesn’t include any numerical values, the columns required to show the total values aren’t part of the report. These columns weren’t included when the report was customized.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"}},"type":"object"},"report_subtitle":{"description":"The subtitle for this report.","type":"string"},"report_title":{"description":"The main title for this report.","type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updatePayrollItemAddition_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"calculated_based_on":{"enum":["HoursAll","HoursWorked","Quantity","Rate"],"type":"string"},"edit_sequence":{"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_active":{"type":"boolean"},"is_tracked_by_cust_job":{"type":"boolean"},"limit":{"type":"number"},"limit_time_period":{"enum":["Annual","Forever"],"type":"string"},"list_id":{"type":"string"},"name":{"type":"string"},"net_or_gross":{"enum":["Gross","Net"],"type":"string"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"taxability":{"items":{"properties":{"is_tax_applied":{"type":"boolean"},"payroll_item_tax_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"w2_tracking_type_value":{"type":"integer"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listOtherNames_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"},"alt_contact":{"description":"The name of an alternate contact person for a vendor, customer, or “other name” entry.","type":"string"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"email":{"description":"E-mail address.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"fax":{"description":"Fax number.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"notes":{"description":"Additional information.","type":"string"},"other_name_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"other_name_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"phone":{"description":"The telephone number.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateTimeTracking_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"duration":{"description":"Time spent doing the work. In a TimeTrackAdd request, notice that although you can specify seconds, seconds aren’t returned in the response because the UI doesn’t use seconds.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In JournalCreditLine and JournalDebitLine messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"item_service_ref":{"description":"A service item refers to services that a business charges for or purchases. Examples include specialized labor, consulting hours, and professional fees. An `item_service_ref` aggregate refers to an item on the ItemService list. In a request, if an `item_service_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"notes":{"description":"Additional information.","type":"string"},"payroll_item_wage_ref":{"description":"Each payroll wage item describes and names a payment scheme, for example, Regular Pay or Overtime Pay. A `payroll_item_wage_ref` aggregate refers to one of these wage items. In a request, if a `payroll_item_wage_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"rate":{"type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"TimeTrackingRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateItemOtherCharge_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"not":{"anyOf":[{"required":["sales_or_purchase","sales_and_purchase"]}]},"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_and_purchase":{"description":"A `sales_and_purchase` aggregate is used for items that are meant to be both purchased and sold, such as an “other charge” item that is reimbursable.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","properties":{"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"sales_or_purchase":{"description":"A `sales_or_purchase` aggregate is used for items that are meant to be either purchased or sold, but not both. For example, a `sales_or_purchase` aggregate would be used for a non-inventory item that is purchased but not sold, or for a service item that is sold but not purchased.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","not":{"anyOf":[{"required":["price","price_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"price":{"description":"The purchase price or sales price of this item.\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"},"price_percent":{"description":"The price expressed as a percent. (For example, an auto shop that calculates the cost of labor as a percentage of the cost of parts might have a service item called “Labor” that uses `price_percent` instead of Price.)\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"special_item_type":{"description":"Identifies the type of special item. See type for possible enum values.","enum":["FinanceCharge","ReimbursableExpenseGroup","ReimbursableExpenseSubtotal"],"type":"string"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"ItemOtherChargeRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateItemSalesTax_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"sales_tax_return_line_ref":{"description":"Sales tax return line information.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_rate":{"description":"The tax rate. If a nonzero `tax_rate` is specified, then `tax_vendor_ref` is required.","type":"number"},"tax_vendor_ref":{"description":"Refers to the tax agency to whom collected taxes are owed. (This will be a vendor on the Vendor list.) If a nonzero `tax_rate` is specified, then `tax_vendor_ref` is required. In a request, if a `tax_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"ItemSalesTaxRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createCurrency_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"as_of_date":{"description":"The date when the exchange rate was last changed.","format":"date","type":"string"},"currency_code":{"description":"For built-in currencies, the currency code and name is the generally accepted code and name. These are based on the standard ISO 4217 code/name for a country’s currency. In most cases, the currency code is composed of the country’s two-character Internet country code plus an extra character representing the currency unit.","type":"string"},"currency_format":{"description":"The aggregate controlling the appearance of the currency with regard to comma and decimal.","properties":{"decimal_places":{"description":"This enumerated value controls the display of the decimal value, for example, 1.00. The default is 2 which means 2 decimals are displayed to the right of the decimal point, but you can specify 0 (zero) if you don’t want’ decimals to be displayed.","enum":["0","2"],"type":"string"},"decimal_separator":{"description":"This enumerated value controls the display of the decimal point, for example, 1.00 or 1,00. The default is Period but you could alternatively specify a value of Comma.","enum":["Comma","Period"],"type":"string"},"thousand_separator":{"description":"This enumerated value controls how the thousandth’s place is separated from the next thousand, for example, 1,000,000. The default is Comma, as shown, but you can replace this with one of these values: Period, Space, Apostrophe .","enum":["Apostrophe","Comma","Period","Space"],"type":"string"},"thousand_separator_grouping":{"description":"This enumerated value controls how the display of the currency value is grouped, for example, 10,000,000. The default is XX_XXX_XXX but you could replace this with X_XX_XX_XXX","enum":["XX_XXX_XXX","X_XX_XX_XXX"],"type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at `as_of_date`. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_user_defined_currency":{"description":"Indicates whether the currency is a built-in currency (value here would be false) or a currency created by a QuickBooks user (value here would be true).","type":"boolean"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"CurrencyRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3040,3070,3100,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_amount","string_too_long","name_in_use","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowError":{"description":"One problem, located inside the document it came from.","properties":{"message":{"example":"unknown target \"bar\"","type":"string"},"path":{"example":"states.resolve_conflict.states.ask.on.rename.0.target","type":"string"}},"type":"object"},"updatePayrollItemWage_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"edit_sequence":{"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_active":{"type":"boolean"},"list_id":{"type":"string"},"name":{"type":"string"},"overtime_multiplier":{"type":"number"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"wage_type":{"enum":["Bonus","Commission","HourlyOvertime","HourlyRegular","HourlySick","HourlyVacation","SalaryRegular","SalarySick","SalaryVacation"],"type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listReceivePaymentToDeposits_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"amount_in_home_currency":{"description":"Amount in units of the home currency.","type":"number"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateItemReceipt_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"not":{"anyOf":[{"required":["ap_account_ref","liability_account_ref"]}]},"properties":{"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.\n\nChoose at most one of: `ap_account_ref`, or `liability_account_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_ret":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"liability_account_ref":{"description":"Refers to a liability account for this non-wage payroll item.\n\nChoose at most one of: `ap_account_ref`, or `liability_account_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the home currency.","type":"number"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"ItemReceiptRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateTransferInventory_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"from_inventory_site_ref":{"description":"Inventory site that transfer will be taken from.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"to_inventory_site_ref":{"description":"Inventory site that transfer will be sent to.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"transfer_inventory_line_ret":{"items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"from_inventory_site_location_ref":{"description":"Location within the inventory site that transfer will be taken from.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"quantity_transferred":{"description":"Quantity of items transferred.","type":"number"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"to_inventory_site_location_ref":{"description":"Location within the inventory site that transfer will be sent to.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"TransferInventoryRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listPayrollSummaryReports_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"col_desc":{"items":{"properties":{"col_id":{"description":"An identifying number that corresponds to the position of this column in the report. The columns are numbered from left to right, starting with 1.","type":"integer"},"col_title":{"items":{"type":"string"},"type":"array"},"col_type":{"description":"The type of data that this column contains. `col_type` values are formatted types. (Returned ctPercent values, for example, will have digits after the decimal points, and ctAddr1 values will be strings.)","enum":["Account","Addr1","Addr2","Addr3","Addr4","Addr5","Aging","Amount","AmountDifference","AverageCost","BilledDate","BillingStatus","Blank","CalculatedAmount","Class","ClearedStatus","CostPrice","CreateDate","Credit","CustomField","Date","Debit","DeliveryDate","DueDate","Duration","EarliestReceiptDate","EstimateActive","FOB","IncomeSubjectToTax","Invoiced","IsAdjustment","Item","ItemDesc","ItemVendor","Label","LastModifiedBy","LatestOrPriorState","Memo","ModifiedTime","Name","NameAccountNumber","NameAddress","NameCity","NameContact","NameEmail","NameFax","NamePhone","NameState","NameZip","OpenBalance","OriginalAmount","PONumber","PaidAmount","PaidStatus","PaidThroughDate","PaymentMethod","PayrollItem","Percent","PercentChange","PercentOfTotalRetail","PercentOfTotalValue","PhysicalCount","PrintStatus","ProgressAmount","ProgressPercent","Quantity","QuantityAvailable","QuantityOnHand","QuantityOnOrder","QuantityOnPendingBuild","QuantityOnSalesOrder","ReceivedQuantity","RefNumber","ReorderPoint","RetailValueOnHand","RunningBalance","SONumber","SSNOrTaxID","SalesPerWeek","SalesRep","SalesTaxCode","ShipDate","ShipMethod","ShipToAddr1","ShipToAddr2","ShipToAddr3","ShipToAddr4","ShipToAddr5","SourceName","SplitAccount","SuggestedReorder","TaxLine","TaxTableVersion","Terms","Total","TxnID","TxnNumber","TxnType","UnitPrice","UserEdit","ValueOnHand","WageBase","WageBaseTips"],"type":"string"},"data_type":{"description":"The data type: IDTYPE, STRTYPE, and so on.","enum":["AMTTYPE","BOOLTYPE","DATETIMETYPE","DATETYPE","ENUMTYPE","GUIDTYPE","IDTYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STRTYPE","TIMEINTERVALTYPE"],"type":"string"}},"type":"object"},"type":"array"},"num_col_title_rows":{"description":"The number of rows to allocate for column titles. Although this number is usually 1, with some reports it is 2 or 3. (For an example of column titles that span multiple rows, look at a ProfitAndLossByJob report in QuickBooks.)","type":"integer"},"num_columns":{"description":"The number of columns in the report.","type":"integer"},"num_rows":{"description":"The number of rows in the report.","type":"integer"},"report_basis":{"description":"If `report_basis` is rbCash, the report bases income and expenses on the dates when money changed hands.rbAccrual, the report bases income on the dates when customers were invoiced and bases expenses on the dates when bills were entered.rbNone, the report uses the default `report_basis`, which is either the QuickBooks Preference setting or the QuickBooks default for a given type of report.","enum":["Accrual","Cash","None"],"type":"string"},"report_data":{"description":"If the report contains any data, it is given row-by-row in a `report_data` aggregate.","properties":{"data_row":{"description":"A data row contains the actual data for each column.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"subtotal_row":{"description":"A row that contains a calculated subtotal of the data in all the rows since the last SubTotalRow and, usually, a single underline. There can be multiple SubTotalRow aggregates in a report.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"text_row":{"description":"A text row contains only text and is used mainly for headings.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"type":"string"},"type":"array"},"total_row":{"description":"A row that contains a calculated total of all the data that has come before and a double underline. There will only be one `total_row` per report. If `total_row` doesn’t include any numerical values, the columns required to show the total values aren’t part of the report. These columns weren’t included when the report was customized.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"}},"type":"object"},"report_subtitle":{"description":"The subtitle for this report.","type":"string"},"report_title":{"description":"The main title for this report.","type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listSalesTaxPayables_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_payable_line_ret":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listSalesTaxReturns_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"desc":{"description":"A descriptive text field.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listPayrollItemNonWages_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"liability_account_ref":{"description":"Refers to a liability account for this non-wage payroll item.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"non_wage_type":{"description":"The type of non-wage item.","enum":["Addition","CompanyContribution","Deduction","DirectDeposit","Tax"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createCreditCardCredit_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for `expense_line_add` it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"amount_in_home_currency":{"description":"Amount in units of the home currency.","type":"number"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for `expense_line_add` it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_ret":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If `item_line_add` doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If `item_line_add` doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"CreditCardCreditRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createClass_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"The case-insensitive name of the class, not including the names of its ancestors.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"ClassRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowRunEvent":{"description":"One thing that happened in a run you started, or in a workflow it calls -- which runs as part of it, so its events are in the same stream, right after the `call_started` event that began it. Append-only.","properties":{"at":{"format":"date-time","type":"string"},"item_index":{"description":"Only inside an element of a state that runs a workflow once per item: which element (0-based).","type":"integer"},"kind":{"description":"`call_started` and `call_finished` begin and end a workflow this one calls; `run_started` and `run_completed`/`run_failed`/`run_cancelled` with a `state` are that workflow's own start and end, at the calling state. `notification_queued`, `notification_delivered` and `notification_failed` are a notify state's `workflow_run.notification`: sent, answered with a 2xx, or never delivered; `notification_skipped` an optional one on a run without a `webhook_url`, which sends nothing. `match_waiting` and `match_answered` are a match state's: waiting for the connection's name index to be built or refreshed, and what it found (its tier and counts, never a name).","enum":["run_started","state_entered","state_exited","request_queued","response_received","page_delivered","settling","settled","unsettled","event_raised","transition_taken","assigns_applied","prompt_shown","decision_received","call_started","call_finished","notification_queued","notification_delivered","notification_failed","notification_skipped","match_waiting","match_answered","webhook_sent","run_completed","run_failed","run_cancelled"],"type":"string"},"payload":{"description":"What the kind carries: `response` (the whole response) on response_received -- except a paginated query's last one, which has `count` and `pages` in place of `data`, the records being on each page_delivered, `owner`/`event`/`index`/`description`/`target`/`to`/`considered` on transition_taken, `assigned` on assigns_applied, `option`/`data`/`by` on decision_received, `page`/`count`/`queued_request_id`/`response` on page_delivered (a paginated query's page, raised as `page`; `response` is that page's, as on response_received), `workflow` (and `item_index`/`item_count`) on call_started and call_finished, with `stops: true` on the call_finished of the element whose ending (one of the state's `stop_on`) ended the loop, `delivery_id`/`name`/`seq`/`bytes` on notification_queued, notification_delivered (with `attempts`) and notification_failed (with `attempts` and `error`, whose `type` is `not_delivered` or `too_large`; one too large was never sent and has no `seq`) -- never what was sent, `for` (`build` or `refresh`) on match_waiting, `match` (the tier), `candidates`, `candidates_total`, `candidates_total_complete` and `index` (`ready`, or `unavailable` when it asked QuickBooks' own filters) on match_answered -- never a name, and so on. A `response` that succeeded but that QuickBooks warned about has `warning` with its `code` and `message` (530, for one: a field it does not support, which it saved the record without). A `response` that is an error has `error` with `code`, `type` and `message`; when `type` is `no_response` (QuickBooks never answered) it also has `reason`, why: `timed_out` or `connector_error` (sent, so QuickBooks may have applied it), `rejected` (QuickBooks could not read it), `withdrawn` (withdrawn before it was sent), `page_expired` (a later page never fetched) or `too_large` (QuickBooks ran it, but its answer was over QuBe Sync's size limit; a query is not re-sent), and, for an add, `external_guid`, the GUID it was sent with. Response bodies are removed 7 days after the run ends.","type":"object"},"seq":{"description":"Its position in the stream, which is the order entries come in and what `after` takes: `7` is the run's own 7th event, `7.2` the 2nd event of the workflow the 7th started, `7.3.1` a level deeper.","example":"7.3.1","type":"string"},"state":{"description":"Where it happened, as a path from the run you started: `create_customer / try_create` is a state of the workflow `create_customer` calls. Null for what happened to the run as a whole.","example":"create_customer / try_create","nullable":true,"type":"string"},"vars_after":{"description":"`vars` of the workflow it belongs to once this event had happened. Null 7 days after the run ends.","nullable":true,"type":"object"},"workflow":{"description":"The key of the workflow whose chart the event belongs to.","type":"string"}},"required":["seq","at","kind","state","workflow","payload","vars_after"],"type":"object"},"listVendors_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"vendor_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in ShipAddressBlock or BillAddressBlock.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"mobile":{"type":"string"},"tax_on_sales_account_ref":{"description":"Account used for taxes on sales in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"prefill_account_ref":{"items":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"type":"array"},"is_sales_tax_agency":{"description":"Indicates whether the entity is a sales tax agency.","type":"boolean"},"is_tax_agency":{"description":"Is the current entity a tax agency.","type":"boolean"},"is_tax_on_tax":{"description":"For vendor in CA or UK, is there tax charged on top of tax.","type":"boolean"},"fax":{"description":"Fax number.","type":"string"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"vendor_type_ref":{"description":"Vendor types allow business owners to categorize vendors in ways that are meaningful for their businesses. For example, a vendor type might indicate which industry a vendor represents, or which part of the country a vendor is in. A `vendor_type_ref` aggregate refers to one of the types on the VendorType list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_tax_tracked_on_sales":{"description":"This flag is used for CA or UK and whether tax is tracked on sales.","type":"boolean"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"vendor_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"reporting_period":{"description":"Vendor reporting period for CA or UK. This can be monthly or quarterly.","enum":["Monthly","Quarterly"],"type":"string"},"alt_contact":{"description":"The name of an alternate contact person for a vendor, customer, or “other name” entry.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"billing_rate_ref":{"description":"Billing rates are used to override the service item rate in a time transaction (TimeTrackingAdd) based on the employee or vendor performing the work. Billing rates are assigned to an employee or a vendor to specify overrides to service items.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_limit":{"description":"Set and returned as a positive number that indicates a customer’s or vendor’s credit limit. If no value has been defined, there is no credit limit.","type":"number"},"additional_notes_ret":{"items":{"properties":{"date":{"description":"The date the note was updated.","format":"date","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"note_id":{"description":"The ID of the note.","type":"integer"}},"type":"object"},"type":"array"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"email":{"description":"E-mail address.","type":"string"},"tax_on_purchases_account_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_vendor_eligible_for1099":{"description":"If `is_vendor_eligible_for1099` is set to true, `vendor_tax_ident` and `vendor_address` are required in a vendor add request message. Otherwise, `vendor_tax_ident` and `vendor_address` are optional.","type":"boolean"},"sales_tax_return_ref":{"description":"Sales tax return information.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"contacts_ret":{"items":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"phone":{"description":"The telephone number.","type":"string"},"vendor_tax_ident":{"description":"A character string that identifies a vendor.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"balance":{"description":"A positive number indicates money owed to this vendor.","type":"number"},"name_on_check":{"description":"The vendor’s name as it will appear on checks sent to the vendor. (Corresponds in the QuickBooks user interface to the “Print on Check as” field of the Edit Vendor and New Vendor windows.)","type":"string"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"cc":{"description":"Email address that would be carbon copied or CC.","type":"string"},"suffix":{"type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_country":{"description":"The country that sales tax is collected for.","enum":["Australia","Canada","UK","US"],"type":"string"},"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"pager":{"type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_tax_tracked_on_purchases":{"description":"This flag is used for CA or UK and whether tax is tracked on purchases.","type":"boolean"},"tax_registration_number":{"description":"The tax registration number used in CA and UK.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"notes":{"description":"Additional information about this vendor.","type":"string"},"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateClearedStatus_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createBill_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"amount_due":{"description":"The total monetary amount shown on a bill or packing slip received from a vendor. `amount_due` will be the total of the amounts in the expense lines, item lines, and item group lines. `amount_due` minus any credits or discounts equals the `open_amount`.","type":"number"},"amount_due_in_home_currency":{"description":"Amount due in units of the home currency.","type":"number"},"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for `expense_line_add` it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Appears in the A/P register and in reports that include this bill.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_paid":{"description":"If `is_paid` is true, this transaction has been paid.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_ret":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If `item_line_add` doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If `item_line_add` doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions: ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment). ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Appears in the A/P register and in reports that include this bill.","type":"string"},"open_amount":{"description":"Indicates the amount that is still owed. `amount_due` minus any credits or discounts equals the `open_amount`.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"vendor_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"BillRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowPromptRow":{"description":"One row of a `rows` field: one thing the question asks about, such as a record QuickBooks doesn't have.","properties":{"columns":{"description":"The columns this row asks, by name, in the field's order; send no others for it.","example":["action","list_id","income_account"],"items":{"type":"string"},"type":"array"},"detail":{"example":"Item","nullable":true,"type":"string"},"key":{"description":"Unique among the rows: the key of its answer in the field's object, and `row` in a search. add_transaction's is the reference's first path in the params your app sent.","example":"invoice_line_add.0.item_ref","type":"string"},"kinds":{"additionalProperties":{"type":"string"},"description":"For each `record` column the row asks, the list its search looks in.","example":{"income_account":"account","list_id":"item"},"type":"object"},"label":{"example":"Vinyl Banner","type":"string"},"values":{"additionalProperties":{},"description":"What the row already says for columns it doesn't ask (an item add your app sent fixes its type): show them, read `when` over them, and don't send them.","example":{"item_type":"item_non_inventory"},"type":"object"}},"required":["key","label","detail","columns","values","kinds"],"type":"object"},"listItemSites_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"oneOf":[{"properties":{"item_inventory_assembly_ref":{"description":"An inventory assembly item is one that is assembled or manufactured from inventory items. The items and/or assemblies that make up the assembly are called components. For Premier, an assembly can have a maximum of 100 components. For Enterprise, the maximum is 500 components.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["item_inventory_assembly_ref"],"title":"ItemInventoryAssemblyRef","type":"object"},{"properties":{"item_inventory_ref":{"description":"An inventory item is any merchandise or part that a business purchases, tracks as inventory, and then resells. In QuickBooks, information about an inventory item is grouped into three categories:Puchase Information includes PurchaseDesc, PurchaseCost, COGSAccountRef, and PrefVendorRef. Sales Information includes SalesDesc, SalesPrice, and SalesTaxCodeRef.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["item_inventory_ref"],"title":"ItemInventoryRef","type":"object"}],"properties":{"assembly_build_point":{"description":"Inventory level that new build assembly should begin.","type":"number"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"quantity_on_hand":{"description":"The number of these items in inventory. `quantity_on_hand` times AverageCost is TotalValue in an inventory item list. To change the `quantity_on_hand` for an item, you would have to use InventoryAdjustmentAdd not an ItemInventoryMod.","type":"number"},"quantity_on_pending_transfers":{"description":"Quantity of items on pending transfers.","type":"number"},"quantity_on_purchase_orders":{"description":"Quantity of items on outstanding purchase orders.","type":"number"},"quantity_on_sales_orders":{"description":"Quantity of items on outstanding sales orders.","type":"number"},"quantity_required_by_pending_build_txns":{"description":"Quantity of items required by pending build transactions.","type":"number"},"quantity_to_be_built_by_pending_build_txns":{"description":"Quantity of items to be built on pending build transactions.","type":"number"},"reorder_level":{"description":"Level that inventory should be reordered.","type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createVehicle_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"desc":{"description":"A descriptive text field.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"VehicleRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3040,3070,3100,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_amount","string_too_long","name_in_use","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listPriceLevels_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"not":{"anyOf":[{"required":["price_level_fixed_percentage","price_level_per_item_ret"]},{"required":["price_level_fixed_percentage","currency_ref"]}]},"properties":{"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.\n\nChoose at most one of: `price_level_fixed_percentage`, or the set (`currency_ref`, `price_level_per_item_ret`). Members of a set combine with each other, not with the other choices.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"price_level_fixed_percentage":{"description":"When you create a price level, you must specify whether it is a fixed percentage or a per item price level. Once you create the price level, you can’t change this. QuickBooks Pro and greater versions support fixed percentages, but only QuickBooks Premier and Enterprise support the per item price level. Where is this discount applied if Price Levels are enabled in QuickBooks preferences?\n\nChoose at most one of: `price_level_fixed_percentage`, or the set (`currency_ref`, `price_level_per_item_ret`). Members of a set combine with each other, not with the other choices.","type":"number"},"price_level_per_item_ret":{"description":"Choose at most one of: `price_level_fixed_percentage`, or the set (`currency_ref`, `price_level_per_item_ret`). Members of a set combine with each other, not with the other choices.","items":{"not":{"anyOf":[{"required":["custom_price","custom_price_percent"]},{"properties":{"custom_price":false,"custom_price_percent":false}}]},"properties":{"custom_price":{"description":"When you create a price level, you have the option to create it with a custom price that is either a fixed amount (`custom_price`) or a fixed discount percentage (`custom_price_percent`). Alternatively, instead of a flat custom price or discount, you could apply a price discount based on either the current custom price, the standard price of the item, or the cost of the item.\n\nChoose exactly one of: `custom_price`, or `custom_price_percent`.","type":"number"},"custom_price_percent":{"description":"When you create a price level, you have the option to create it with a custom price that is either a fixed amount (`custom_price`) or a fixed discount percentage (`custom_price_percent`).\n\nChoose exactly one of: `custom_price`, or `custom_price_percent`.","type":"number"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"price_level_type":{"description":"The types of price level, fixed percentage type or per item types. Per item types are only supported in Premier or Enterprise.","enum":["FixedPercentage","PerItem"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3120,3140,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","object_not_found","invalid_reference","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowRunSummary":{"description":"What a finished run did -- a workflow it calls runs as part of it, so what that workflow did is in these lists too, where the call sits in the run's order, under its path (`<calling state> / <state>`). Cancelling never undoes anything in QuickBooks: `changes` is what the run had already changed, and `unconfirmed` what it may have. This is the whole summary, as the run (`GET links.run`, the run lists) carries it: what a final webhook's summary has (WorkflowRunWebhookSummary, whose `unconfirmed` entries name the record kind rather than the state), plus the state that made each change (`side_effects`), every request it sent, every workflow it called, what its match states found, and what a cancel withdrew.","properties":{"calls":{"description":"Every workflow the run called, the ones those called included, in order: the calling state's path, the element when that state runs once per item, the workflow it called and how that ended. What each did is in the lists above.","items":{"properties":{"item_index":{"description":"Which element of the list the call ran for, when the calling state runs once per item; null otherwise.","nullable":true,"type":"integer"},"outcome":{"description":"How the called workflow ended: completed, failed, or an outcome it declares. Null when it was cancelled.","nullable":true,"type":"string"},"state":{"description":"The calling state, as a path from this run.","example":"create_customer","type":"string"},"status":{"enum":["completed","failed","cancelled"],"type":"string"},"workflow":{"description":"The key of the workflow it called.","type":"string"}},"type":"object"},"type":"array"},"changes":{"description":"Every record the run changed in QuickBooks, in order, wherever in the run it happened (the workflows it called included): the creates, updates, deletes, voids and merges QuickBooks answered with success, and one whose answer was lost and that was found applied afterwards, with `settled`.","items":{"properties":{"action":{"description":"What was done: `create`, `update`, `delete`, `void`, `merge`, or the operation's own verb.","example":"create","type":"string"},"full_name":{"description":"The record's full name, when QuickBooks returned one.","type":"string"},"item":{"description":"Only for a change made for one element of a state that runs a workflow once per item (each record of `push_records`): which element, 0-based, as `items[].index` says.","type":"integer"},"kind":{"description":"What it was done to: the record's kind (`customer`, `invoice`, `receive_payment`), or `transaction` for a void or delete of any transaction.","example":"customer","nullable":true,"type":"string"},"list_id":{"description":"The record's ListID, when QuickBooks returned one.","type":"string"},"ref_number":{"description":"The transaction's number, when QuickBooks returned one.","type":"string"},"settled":{"description":"Only when QuickBooks' answer was lost and the change was found applied afterwards: how.","enum":["found","already_deleted","already_current","kept"],"type":"string"},"txn_id":{"description":"The transaction's TxnID, when QuickBooks returned one.","type":"string"}},"required":["action","kind"],"type":"object"},"type":"array"},"decisions":{"description":"Every answer the run was given, in order, as the engine records it: the asking state's path, the workflow whose state it is, `item_index`, the `option` chosen and when. A webhook carries them as `question`, `choice`, `at` and `item`.","items":{"properties":{"at":{"format":"date-time","type":"string"},"item_index":{"description":"Only inside an element of a state that runs a workflow once per item: which element (0-based).","type":"integer"},"option":{"type":"string"},"state":{"description":"Where it happened, as a path from this run: a state of this workflow, or `<calling state> / <state>` inside a workflow it calls.","example":"create_customer / try_create","type":"string"},"workflow":{"description":"The key of the workflow whose state that is.","type":"string"}},"type":"object"},"type":"array"},"discarded":{"description":"Requests that were queued but not yet sent when the run was cancelled, and were withdrawn; and, for a state that runs a workflow once per item, how many items never started.","items":{"properties":{"item_index":{"description":"Only inside an element of a state that runs a workflow once per item: which element (0-based).","type":"integer"},"items_not_started":{"description":"For a state running once per item: the elements after the cancelled one.","type":"integer"},"message":{"description":"For items not started, e.g. \"2 items of ensure_items not started\".","type":"string"},"operation":{"type":"string"},"queued_request_id":{"format":"uuid","type":"string"},"state":{"description":"Where it happened, as a path from this run: a state of this workflow, or `<calling state> / <state>` inside a workflow it calls.","example":"create_customer / try_create","type":"string"},"workflow":{"description":"The key of the workflow whose state that is.","type":"string"}},"type":"object"},"type":"array"},"ended_at":{"format":"date-time","type":"string"},"matches":{"description":"Only when the run's match states answered, the workflows it called included, in order: what each one found -- its tier and counts, never a name.","items":{"properties":{"candidates":{"description":"How many candidates the answer listed (at most 10).","type":"integer"},"candidates_total":{"description":"How many qualified as candidates.","type":"integer"},"candidates_total_complete":{"description":"`false` when `candidates_total` is a lower bound.","type":"boolean"},"index":{"description":"`ready`: answered from the connection's name index. `unavailable`: the connection has none (it isn't realtime), so QuickBooks' own filters answered.","enum":["ready","unavailable"],"type":"string"},"item_index":{"description":"Inside a state that runs a workflow once per item: which element (0-based).","type":"integer"},"match":{"enum":["exact","strong","candidates","none"],"type":"string"},"state":{"description":"The match state's path from the run you started.","type":"string"},"workflow":{"description":"The key of the workflow whose state it is.","type":"string"}},"type":"object"},"type":"array"},"notifications":{"description":"Only when the run's notify states sent the app anything, the workflows it called included: how many `workflow_run.notification` webhooks were delivered (`sent`) and how many never were (`failed`: every attempt failed, or the data was over 4 MB).","properties":{"failed":{"type":"integer"},"sent":{"type":"integer"}},"type":"object"},"requests":{"description":"Every QuickBooks request the run sent, in order. `status` is `success`, `error`, or `in_flight` for one already sent when the run was cancelled (it may still complete). A paginated query is one entry, with `pages`. A request whose answer was lost and that was then found applied reads as `success`, with `settled` and the record found: whether the run's own check found it, or a later query of the chart's own answered with the record the add carried (its `external_guid`, or for a list add sent without one, its full name), which `found_by` names. A change whose answer was lost and that nothing settled keeps `error` and has `unconfirmed`.","items":{"properties":{"evidence":{"description":"With `settled`, when the run settled it itself: on what grounds, in a sentence -- what the check looked at, what came back and what that means, such as `of 2 candidates with reference number \"1044\", one carries the GUID sent (txn_id 2-1), so the add was applied`. The same sentence is `response.evidence` in the chart and on the run's `settled` event.","example":"of 2 candidates with reference number \"1044\", one carries the GUID sent (txn_id 2-1), so the add was applied","type":"string"},"found_by":{"description":"Only on an add whose answer was lost and that the chart's own lookup found afterwards (`settle: false`): the state whose answer carried the record the add was sent with. The add reads as `success`, with that record's identifiers, and is a side effect.","example":"look_for_invoice","type":"string"},"identifiers":{"description":"Whichever of `list_id`, `txn_id`, `full_name` and `ref_number` QuickBooks returned for the record.","properties":{"full_name":{"type":"string"},"list_id":{"type":"string"},"ref_number":{"type":"string"},"txn_id":{"type":"string"}},"type":"object"},"item_index":{"description":"Only inside an element of a state that runs a workflow once per item: which element (0-based).","type":"integer"},"operation":{"type":"string"},"pages":{"description":"Only for a paginated query: how many pages it took. `status` is how the last one went.","type":"integer"},"role":{"description":"Only for a request the run sent on its own to settle a lost answer or a conflict: `settle` a check, `read` the transaction a check found, read whole by its TxnID (the check reads headers only), `resend` the request again, `reapply` or `overwrite` an update sent again with the current edit sequence, `prepare` the read before an update. Absent for the state's own request.","enum":["prepare","settle","read","resend","reapply","overwrite"],"type":"string"},"settled":{"description":"Only on a state's own request whose answer was lost, or that met a conflict: how the run settled it, as `response.settled` says. `found` is also what an add reads when a later query of the chart's own found it (`found_by`).","enum":["found","already_deleted","already_current","resent","reapplied","overwritten","kept"],"type":"string"},"state":{"description":"Where it happened, as a path from this run: a state of this workflow, or `<calling state> / <state>` inside a workflow it calls.","example":"create_customer / try_create","type":"string"},"status":{"enum":["success","error","in_flight"],"type":"string"},"unconfirmed":{"description":"Only `true`, on a create, update, delete or execute QuickBooks never answered (its computer lost its connection, or QuickBooks or the Web Connector was closed, while it had the request; nothing reports an error) that the run neither found applied nor sent again. It may or may not have changed QuickBooks; it is listed under `unconfirmed`, not `side_effects`.","type":"boolean"},"workflow":{"description":"The key of the workflow whose state that is.","type":"string"}},"type":"object"},"type":"array"},"side_effects":{"description":"The same changes as `changes`, as the engine records them: the state that made each (a path from this run), the workflow whose state it is, `item_index`, `operation`, the record's `identifiers`, and `settled`/`evidence` for one found applied after a lost answer. For inspecting the run; a webhook carries `changes` only.","items":{"properties":{"evidence":{"description":"With `settled`, when the run settled it itself: on what grounds, in a sentence, as the request's `evidence` says.","type":"string"},"identifiers":{"description":"Whichever of `list_id`, `txn_id`, `full_name` and `ref_number` QuickBooks returned for the record.","properties":{"full_name":{"type":"string"},"list_id":{"type":"string"},"ref_number":{"type":"string"},"txn_id":{"type":"string"}},"type":"object"},"item_index":{"description":"Only inside an element of a state that runs a workflow once per item: which element (0-based).","type":"integer"},"operation":{"type":"string"},"settled":{"description":"Only when QuickBooks' answer was lost and the change was found applied afterwards, by the run's own check or the chart's own lookup: how, as the request's `settled` says.","enum":["found","already_deleted","already_current","kept"],"type":"string"},"state":{"description":"Where it happened, as a path from this run: a state of this workflow, or `<calling state> / <state>` inside a workflow it calls.","example":"create_customer / try_create","type":"string"},"workflow":{"description":"The key of the workflow whose state that is.","type":"string"}},"type":"object"},"type":"array"},"stopped_at":{"description":"The state the run was in when it ended -- a path into the workflow it called when it ended while one was running. Null for a run that completed (a webhook leaves it out then).","example":"create_customer / resolve_conflict.ask_about_customer","nullable":true,"type":"string"},"unconfirmed":{"description":"Only when there is one: the creates, updates, deletes and executes QuickBooks never answered that the run neither found applied nor sent again -- the chart asked your app and it picked another record, say, or the run failed or was cancelled first. Each may or may not have changed QuickBooks, so it is not in `changes`: check QuickBooks before sending it again. Its entry in the whole summary's `requests` (on the run) is the same, with `unconfirmed`.","items":{"properties":{"item_index":{"description":"Only inside an element of a state that runs a workflow once per item: which element (0-based).","type":"integer"},"operation":{"type":"string"},"state":{"description":"Where it was sent, as a path from this run: a state of this workflow, or `<calling state> / <state>` inside a workflow it calls.","example":"add_invoice","type":"string"},"workflow":{"description":"The key of the workflow whose state that is.","type":"string"}},"type":"object"},"type":"array"}},"type":"object"},"createEstimate_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"sales_tax_percentage":{"description":"The percentage charged for sales tax.","type":"number"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the home currency.","type":"number"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"estimate_line_ret":{"description":"One line of this estimate. Compare with EstimateLineGroup, which represents a previously defined group of lines in the estimate. In a Mod request, you can add a new line by supplying a `txn_line_id` value of -1.\n\n`estimate_line_ret` and `estimate_line_group_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["markup_rate","markup_rate_percent"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"markup_rate":{"description":"The markup that will be passed on to the customer for this item on this estimate. Amount, quantity, rate, and markup are related in the following way: Amount = (Quantity \\* Rate) + amount of markup\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`.","type":"number"},"markup_rate_percent":{"description":"The markup (expressed as a percentage) that will be passed on to the customer for this item on this estimate. Amount, quantity, rate, and markup are related in the following way: Amount = (Quantity \\* Rate) + amount of markup\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`.","type":"number"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"estimate_line_group_ret":{"description":"Represents a previously defined group of lines in the estimate. Compare with EstimateLine, which represents just one line in the estimate.\n\n`estimate_line_ret` and `estimate_line_group_ret` combine: any number of each.","items":{"properties":{"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"estimate_line_ret":{"description":"One line of this estimate. Compare with EstimateLineGroup, which represents a previously defined group of lines in the estimate. In a Mod request, you can add a new line by supplying a `txn_line_id` value of -1.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["markup_rate","markup_rate_percent"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"markup_rate":{"description":"The markup that will be passed on to the customer for this item on this estimate. Amount, quantity, rate, and markup are related in the following way: Amount = (Quantity \\* Rate) + amount of markup\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`.","type":"number"},"markup_rate_percent":{"description":"The markup (expressed as a percentage) that will be passed on to the customer for this item on this estimate. Amount, quantity, rate, and markup are related in the following way: Amount = (Quantity \\* Rate) + amount of markup\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`.","type":"number"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Subtotal plus `sales_tax_total`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bill_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"subtotal":{"description":"The total of all the estimate lines before taxes are applied. (By contrast, a subtotal item (an ItemSubtotal object) gives only the total of the amounts in the lines that appear above it.)","type":"number"},"sales_tax_total":{"description":"The total amount of sales tax charged.","type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"po_number":{"description":"Purchase order number.","type":"string"},"memo":{"description":"Message that appears in reports, but not on the estimate.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"total_amount":{"description":"Subtotal plus `sales_tax_total`.","type":"number"}},"title":"EstimateRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listPaymentMethods_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"payment_method_type":{"description":"The payment method, such as check, cash, debit card, Visa, etc.","enum":["AmericanExpress","Cash","Check","DebitCard","Discover","ECheck","GiftCard","MasterCard","Other","OtherCreditCard","Visa"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowChartStatesMap":{"additionalProperties":{"$ref":"#/components/schemas/WorkflowChartState"},"minProperties":1,"propertyNames":{"allOf":[{"$ref":"#/components/schemas/WorkflowChartIdentifier"},{"not":{"$ref":"#/components/schemas/WorkflowChartReservedStateKeys"}}]},"type":"object"},"listPayrollLiabilityAdjustments_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"amount":{"type":"number"},"class_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"edit_sequence":{"type":"string"},"employee_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_affecting_accounts":{"type":"boolean"},"memo":{"type":"string"},"payroll_date":{"format":"date","type":"string"},"payroll_liability_adjustment_line_ret":{"items":{"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"amount":{"type":"number"},"class_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"company_paid_attribute":{"enum":["IsExpense","IsLiability","IsLiabilityAndExpense","NotApplicable"],"type":"string"},"experience_mod_rate_amount":{"type":"number"},"income_subject_to_tax_amount":{"type":"number"},"memo":{"type":"string"},"other_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"txn_line_id":{"type":"string"},"wage_base_amount":{"type":"number"},"workers_comp_amount":{"type":"number"},"workers_comp_code_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"ref_number":{"type":"string"},"tax_table_version":{"type":"integer"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"txn_date":{"format":"date","type":"string"},"txn_id":{"type":"string"},"txn_number":{"type":"integer"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateBill_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"amount_due":{"description":"The total monetary amount shown on a bill or packing slip received from a vendor. `amount_due` will be the total of the amounts in the expense lines, item lines, and item group lines. `amount_due` minus any credits or discounts equals the `open_amount`.","type":"number"},"amount_due_in_home_currency":{"description":"Amount due in units of the home currency.","type":"number"},"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Appears in the A/P register and in reports that include this bill.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_paid":{"description":"If `is_paid` is true, this transaction has been paid.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_ret":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions: ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment). ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Appears in the A/P register and in reports that include this bill.","type":"string"},"open_amount":{"description":"Indicates the amount that is still owed. `amount_due` minus any credits or discounts equals the `open_amount`.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"vendor_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"BillRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listJournalEntries_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_adjustment":{"description":"When a change is an “adjustment,” the original information is retained, usually so an accountant can see the effects of the adjustment.","type":"boolean"},"is_amounts_entered_in_home_currency":{"description":"Flag that indicates the amount being entered is in the home currency.","type":"boolean"},"is_home_currency_adjustment":{"description":"Indicates whether the transaction is using a home currency or foreign currency.","type":"boolean"},"journal_credit_line":{"description":"If no amount is included in the first credit line (or debit line) of a journal entry in the QuickBooks user interface, then subsequent SDK queries on that JournalEntry object will fail XML validation.\n\n`journal_debit_line` and `journal_credit_line` combine: any number of each.","items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In `journal_credit_line` and `journal_debit_line` messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"journal_debit_line":{"description":"If no amount is included in the first debit line (or credit line) of a journal entry in the QuickBooks user interface, then subsequent SDK queries on that JournalEntry object will fail XML validation.\n\n`journal_debit_line` and `journal_credit_line` combine: any number of each.","items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In `journal_credit_line` and `journal_debit_line` messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createSalesOrder_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this sales order has been closed, even if some line items within it haven’t been invoiced.","type":"boolean"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"sales_tax_percentage":{"description":"The percentage charged for sales tax.","type":"number"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the home currency.","type":"number"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"is_fully_invoiced":{"description":"If `is_fully_invoiced` is true, all the items in the sales order have been invoiced.","type":"boolean"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"sales_order_line_group_ret":{"description":"Represents a previously defined group of lines in the sales order. Compare with SalesOrderLine, which represents just one line in the sales order.\n\n`sales_order_line_ret` and `sales_order_line_group_ret` combine: any number of each.","items":{"properties":{"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_order_line_ret":{"description":"Represents one line in the sales order. Compare with SalesOrderLineGroup, which represents a previously defined group of lines in the sales order.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"invoiced":{"description":"The amount of this sales order line that has been invoiced.","type":"number"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this sales order has been closed, even if some line items within it haven’t been invoiced.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bill_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"subtotal":{"description":"The total of the amounts in all the lines of an invoice, estimate, sales receipt, or credit memo before taxes or payments are applied. (By contrast, a subtotal item (an ItemSubtotal object) gives only the total of the amounts in the lines that appear above it.)","type":"number"},"sales_tax_total":{"description":"The total amount of sales tax charged.","type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"po_number":{"description":"Purchase order number.","type":"string"},"memo":{"description":"Additional information.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_order_line_ret":{"description":"Represents one line in the sales order. Compare with SalesOrderLineGroup, which represents a previously defined group of lines in the sales order.\n\n`sales_order_line_ret` and `sales_order_line_group_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"invoiced":{"description":"The amount of this sales order line that has been invoiced.","type":"number"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this sales order has been closed, even if some line items within it haven’t been invoiced.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"}},"title":"SalesOrderRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listItemInventories_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"asset_account_ref":{"description":"Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"average_cost":{"description":"`average_cost` is the total value of this item divided by `quantity_on_hand`. Initially the total value is the same as the `quantity_on_hand` times the `purchase_cost` (so `average_cost` equals `purchase_cost`). However, the total value can be changed by an inventory adjustment so that it no longer matches `quantity_on_hand` times `purchase_cost`.","type":"number"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cogs_account_ref":{"description":"Refers to the account that QuickBooks uses to track the original cost of goods that are eventually sold. (The AccountType of this account will be CostOfGoodsSold.) In a request, if a `cogs_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"max":{"description":"Maximum number of items in inventory.","type":"number"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Appears in the Description column of checks, bills, credit card charges, and item receipts when this item is reordered.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity_on_hand":{"description":"The number of these items in inventory. `quantity_on_hand` times `average_cost` is TotalValue in an inventory item list. To change the `quantity_on_hand` for an item, you would have to use InventoryAdjustmentAdd not an ItemInventoryMod.","type":"number"},"quantity_on_order":{"description":"The number of these items that have been ordered from vendors (as recorded in purchase orders) but not received.","type":"number"},"quantity_on_sales_order":{"description":"The number of these items that have been sold (as recorded in sales orders) but not delivered to customers.","type":"number"},"reorder_point":{"description":"Quantity at which QuickBooks will remind the user to reorder this inventory item.","type":"number"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listSalesReps_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"initial":{"description":"The initials of a sales representative’s name.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"sales_rep_entity_ref":{"description":"Refers to the sales representative’s full information on the Employee, Vendor, or OtherName list. In a request, if a `sales_rep_entity_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. Notice that you can’t supply a customer name here.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createPayrollItemCompanyContribution_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"calculated_based_on":{"enum":["HoursAll","HoursWorked","Quantity","Rate"],"type":"string"},"edit_sequence":{"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_active":{"type":"boolean"},"is_tracked_by_cust_job":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"type":"object"},"limit":{"type":"number"},"limit_time_period":{"enum":["Annual","Forever"],"type":"string"},"list_id":{"type":"string"},"name":{"type":"string"},"net_or_gross":{"enum":["Gross","Net"],"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"taxability":{"items":{"properties":{"is_tax_applied":{"type":"boolean"},"payroll_item_tax_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"w2_tracking_type_value":{"type":"integer"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createPriceLevel_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"not":{"anyOf":[{"required":["price_level_fixed_percentage","price_level_per_item_ret"]},{"required":["price_level_fixed_percentage","currency_ref"]}]},"properties":{"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.\n\nChoose at most one of: `price_level_fixed_percentage`, or the set (`currency_ref`, `price_level_per_item_ret`). Members of a set combine with each other, not with the other choices.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"price_level_fixed_percentage":{"description":"When you create a price level, you must specify whether it is a fixed percentage or a per item price level. Once you create the price level, you can’t change this. QuickBooks Pro and greater versions support fixed percentages, but only QuickBooks Premier and Enterprise support the per item price level. Where is this discount applied if Price Levels are enabled in QuickBooks preferences?\n\nChoose at most one of: `price_level_fixed_percentage`, or the set (`currency_ref`, `price_level_per_item_ret`). Members of a set combine with each other, not with the other choices.","type":"number"},"price_level_per_item_ret":{"description":"Choose at most one of: `price_level_fixed_percentage`, or the set (`currency_ref`, `price_level_per_item_ret`). Members of a set combine with each other, not with the other choices.","items":{"not":{"anyOf":[{"required":["custom_price","custom_price_percent"]},{"properties":{"custom_price":false,"custom_price_percent":false}}]},"properties":{"custom_price":{"description":"When you create a price level, you have the option to create it with a custom price that is either a fixed amount (`custom_price`) or a fixed discount percentage (`custom_price_percent`). Alternatively, instead of a flat custom price or discount, you could apply a price discount based on either the current custom price, the standard price of the item, or the cost of the item.\n\nChoose exactly one of: `custom_price`, or `custom_price_percent`.","type":"number"},"custom_price_percent":{"description":"When you create a price level, you have the option to create it with a custom price that is either a fixed amount (`custom_price`) or a fixed discount percentage (`custom_price_percent`).\n\nChoose exactly one of: `custom_price`, or `custom_price_percent`.","type":"number"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"price_level_type":{"description":"The types of price level, fixed percentage type or per item types. Per item types are only supported in Premier or Enterprise.","enum":["FixedPercentage","PerItem"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"PriceLevelRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listSalesTaxReturnLines_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"line_type":{"description":"`line_type` may have one of the following values: ECPurchases, ECSales, Purchases, Sales, SubTotal, TaxOnPurchases, TaxOnSales, Total","enum":["ECPurchases","ECSales","Purchases","Sales","SubTotal","TaxOnPurchases","TaxOnSales","Total"],"type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3120,3140,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","object_not_found","invalid_reference","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listCustomDetailReports_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"col_desc":{"items":{"properties":{"col_id":{"description":"An identifying number that corresponds to the position of this column in the report. The columns are numbered from left to right, starting with 1.","type":"integer"},"col_title":{"items":{"type":"string"},"type":"array"},"col_type":{"description":"The type of data that this column contains. `col_type` values are formatted types. (Returned ctPercent values, for example, will have digits after the decimal points, and ctAddr1 values will be strings.)","enum":["Account","Addr1","Addr2","Addr3","Addr4","Addr5","Aging","Amount","AmountDifference","AverageCost","BilledDate","BillingStatus","Blank","CalculatedAmount","Class","ClearedStatus","CostPrice","CreateDate","Credit","CustomField","Date","Debit","DeliveryDate","DueDate","Duration","EarliestReceiptDate","EstimateActive","FOB","IncomeSubjectToTax","Invoiced","IsAdjustment","Item","ItemDesc","ItemVendor","Label","LastModifiedBy","LatestOrPriorState","Memo","ModifiedTime","Name","NameAccountNumber","NameAddress","NameCity","NameContact","NameEmail","NameFax","NamePhone","NameState","NameZip","OpenBalance","OriginalAmount","PONumber","PaidAmount","PaidStatus","PaidThroughDate","PaymentMethod","PayrollItem","Percent","PercentChange","PercentOfTotalRetail","PercentOfTotalValue","PhysicalCount","PrintStatus","ProgressAmount","ProgressPercent","Quantity","QuantityAvailable","QuantityOnHand","QuantityOnOrder","QuantityOnPendingBuild","QuantityOnSalesOrder","ReceivedQuantity","RefNumber","ReorderPoint","RetailValueOnHand","RunningBalance","SONumber","SSNOrTaxID","SalesPerWeek","SalesRep","SalesTaxCode","ShipDate","ShipMethod","ShipToAddr1","ShipToAddr2","ShipToAddr3","ShipToAddr4","ShipToAddr5","SourceName","SplitAccount","SuggestedReorder","TaxLine","TaxTableVersion","Terms","Total","TxnID","TxnNumber","TxnType","UnitPrice","UserEdit","ValueOnHand","WageBase","WageBaseTips"],"type":"string"},"data_type":{"description":"The data type: IDTYPE, STRTYPE, and so on.","enum":["AMTTYPE","BOOLTYPE","DATETIMETYPE","DATETYPE","ENUMTYPE","GUIDTYPE","IDTYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STRTYPE","TIMEINTERVALTYPE"],"type":"string"}},"type":"object"},"type":"array"},"num_col_title_rows":{"description":"The number of rows to allocate for column titles. Although this number is usually 1, with some reports it is 2 or 3. (For an example of column titles that span multiple rows, look at a ProfitAndLossByJob report in QuickBooks.)","type":"integer"},"num_columns":{"description":"The number of columns in the report.","type":"integer"},"num_rows":{"description":"The number of rows in the report.","type":"integer"},"report_basis":{"description":"If `report_basis` is rbCash, the report bases income and expenses on the dates when money changed hands.rbAccrual, the report bases income on the dates when customers were invoiced and bases expenses on the dates when bills were entered.rbNone, the report uses the default `report_basis`, which is either the QuickBooks Preference setting or the QuickBooks default for a given type of report.","enum":["Accrual","Cash","None"],"type":"string"},"report_data":{"description":"If the report contains any data, it is given row-by-row in a `report_data` aggregate.","properties":{"data_row":{"description":"A data row contains the actual data for each column.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"subtotal_row":{"description":"A row that contains a calculated subtotal of the data in all the rows since the last SubTotalRow and, usually, a single underline. There can be multiple SubTotalRow aggregates in a report.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"text_row":{"description":"A text row contains only text and is used mainly for headings.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"type":"string"},"type":"array"},"total_row":{"description":"A row that contains a calculated total of all the data that has come before and a double underline. There will only be one `total_row` per report. If `total_row` doesn’t include any numerical values, the columns required to show the total values aren’t part of the report. These columns weren’t included when the report was customized.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"}},"type":"object"},"report_subtitle":{"description":"The subtitle for this report.","type":"string"},"report_title":{"description":"The main title for this report.","type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateDataExt_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"title":"DataExtRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listPayrollPriorPayments_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"amount":{"type":"number"},"edit_sequence":{"type":"string"},"is_affecting_accounts":{"type":"boolean"},"memo":{"type":"string"},"payroll_date":{"format":"date","type":"string"},"payroll_prior_payment_line_ret":{"items":{"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"amount":{"type":"number"},"memo":{"type":"string"},"payroll_item_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"txn_line_id":{"type":"string"}},"type":"object"},"type":"array"},"ref_number":{"type":"string"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"txn_date":{"format":"date","type":"string"},"txn_id":{"type":"string"},"txn_number":{"type":"integer"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateItemSubtotal_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"special_item_type":{"description":"Identifies the type of special item. See type for possible enum values.","enum":["FinanceCharge","ReimbursableExpenseGroup","ReimbursableExpenseSubtotal"],"type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"ItemSubtotalRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowVersion":{"allOf":[{"$ref":"#/components/schemas/WorkflowVersionSummary"},{"properties":{"definition":{"$ref":"#/components/schemas/WorkflowChart"}},"type":"object"}]},"WorkflowRunError":{"description":"What failed a run, as an object to branch on and show (docs: Workflow webhooks). On `workflow_run.failed`, on the run, and on a failed item of a once-per-item state's output (`push_records`' `items`).","properties":{"code":{"description":"QuickBooks' status code, when a QuickBooks answer failed the run (3100: the name is in use); null when the workflow failed on its own terms.","example":3100,"nullable":true,"type":"integer"},"hint":{"description":"What usually fixes it, for the code; null when there is no hint.","nullable":true,"type":"string"},"message":{"description":"One plain sentence saying what went wrong: the workflow's own words, or, for QuickBooks' error as it came, a plainer sentence for the code (QuickBooks' text is in `quickbooks_message`). Safe to show to the person who started the run.","type":"string"},"quickbooks_message":{"description":"QuickBooks' own text, when it answered with the error; null otherwise.","nullable":true,"type":"string"},"type":{"description":"A stable name for what failed: the code's slug (`name_in_use`, `object_not_found`, ...; the table grows, so a code it doesn't know yet has none), `no_response` for a request QuickBooks never answered, `invalid_input` for an element whose input the called workflow refused, or the failure outcome's key. Branch on it, or on `code`.","example":"name_in_use","nullable":true,"type":"string"}},"required":["code","type","message","quickbooks_message","hint"],"type":"object"},"listAccounts_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"},"account_type":{"description":"The type of QuickBooks account. You can’t create or modify a non-posting account through the SDK, because QuickBooks creates these accounts behind the scenes. This means that you can’t send an AccountAdd request with an `account_type` of NonPosting.","enum":["AccountsPayable","AccountsReceivable","Bank","CostOfGoodsSold","CreditCard","Equity","Expense","FixedAsset","Income","LongTermLiability","NonPosting","OtherAsset","OtherCurrentAsset","OtherCurrentLiability","OtherExpense","OtherIncome"],"type":"string"},"balance":{"description":"Current balance of this account only (versus `total_balance`). Income accounts and balance sheet accounts don’t necessarily have balances.","type":"number"},"bank_number":{"description":"The bank account number or an identifying note about the account. If a `bank_number` exists in a QuickBooks company file, it will only be returned to applications that have been granted permission to access sensitive data and that are using SDK v2.0 or greater.","type":"string"},"cash_flow_classification":{"description":"Indicates how this account is classified for cash flow reporting. If the value is cfcNone, the account hasn’t been classified. If the value is cfcNotApplicable, the account doesn’t qualify to be classified. (For example, a bank account that tracks cash transactions isn’t part of a cash flow report.)","enum":["Financing","Investing","None","NotApplicable","Operating"],"type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"detail_account_type":{"enum":["AP","AR","AccumulatedAdjustment","AccumulatedAmortization","AccumulatedAmortizationOfOtherAssets","AccumulatedDepletion","AccumulatedDepreciation","AdvertisingOrPromotional","AllowanceForBadDebts","Amortization","Auto","BadDebts","BankCharges","Buildings","CashOnHand","CharitableContributions","Checking","CommonStock","CostOfLabor","CostOfLaborCOS","CreditCard","DepletableAssets","Depreciation","DevelopmentCosts","DiscountsOrRefundsGiven","DividendIncome","DuesAndSubscriptions","EmployeeCashAdvances","Entertainment","EntertainmentMeals","EquipmentRental","EquipmentRentalCOS","FederalIncomeTaxPayable","FurnitureAndFixtures","Goodwill","Insurance","InsurancePayable","IntangibleAssets","InterestEarned","InterestPaid","Inventory","InvestmentMortgageOrRealEstateLoans","InvestmentOther","InvestmentTaxExemptSecurities","InvestmentUSGovObligations","Land","LeaseBuyout","LeaseholdImprovements","LegalAndProfessionalFees","Licenses","LineOfCredit","LoanPayable","LoansToOfficers","LoansToOthers","LoansToStockholders","MachineryAndEquipment","MoneyMarket","NonProfitIncome","NotesPayable","OfficeOrGeneralAdministrativeExpenses","OpeningBalanceEquity","OrganizationalCosts","OtherCostsOfServiceCOS","OtherCurrentAssets","OtherCurrentLiab","OtherFixedAssets","OtherInvestmentIncome","OtherLongTermAssets","OtherLongTermLiab","OtherMiscExpense","OtherMiscIncome","OtherMiscServiceCost","OtherPrimaryIncome","OwnersEquity","PaidInCapitalOrSurplus","PartnerContributions","PartnerDistributions","PartnersEquity","PayrollClearing","PayrollExpenses","PayrollTaxPayable","PenaltiesAndSettlements","PreferredStock","PrepaidExpenses","PrepaidExpensesPayable","PromotionalMeals","RentOrLeaseOfBuildings","RentsHeldInTrust","RentsInTrustLiab","RepairAndMaintenance","Retainage","RetainedEarnings","SalesOfProductIncome","SalesTaxPayable","Savings","SecurityDeposits","ServiceOrFeeIncome","ShareholderNotesPayable","ShippingFreightAndDelivery","ShippingFreightAndDeliveryCOS","StateOrLocalIncomeTaxPayable","SuppliesAndMaterials","SuppliesAndMaterialsCOGS","TaxExemptInterest","TaxesPaid","Travel","TravelMeals","TreasuryStock","TrustAccounts","TrustAccountsLiab","UndepositedFunds","Utilities","Vehicles"],"type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_account":{"description":"Indicates whether the account is used for tax.","type":"boolean"},"last_check_number":{"type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"special_account_type":{"description":"If `special_account_type` returns a value, then QuickBooks automatically created this account when it was needed. Some special accounts can’t be overridden, because QuickBooks uses them exclusively for special purposes.","enum":["AccountsPayable","AccountsReceivable","CondenseItemAdjustmentExpenses","CostOfGoodsSold","DirectDepositLiabilities","Estimates","ExchangeGainLoss","InventoryAssets","ItemReceiptAccount","OpeningBalanceEquity","PayrollExpenses","PayrollLiabilities","PettyCash","PurchaseOrders","ReconciliationDifferences","RetainedEarnings","SalesOrders","SalesTaxPayable","UncategorizedExpenses","UncategorizedIncome","UndepositedFunds"],"type":"string"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"tax_line_info_ret":{"description":"If the QuickBooks user has associated a tax form with this company file, they can also associate each account in the company file with a line of that tax form. (To check which tax form, if any, is associated with this company file, do a CompanyQuery and check the returned TaxForm value.)","properties":{"tax_line_id":{"description":"An internal representation of the tax line associated with this account.","type":"integer"},"tax_line_name":{"description":"The name of the tax line associated with this account, as it appears on the tax form.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"total_balance":{"description":"The balance for this object and all its subordinate objects. For example, the `total_balance` for XYZ Bank would be the total of the balances of all its subaccounts (checking, savings, and so on). If XYZ Bank didn’t have any subaccounts, `total_balance` and Balance would be the same.","type":"number"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createToDo_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"not":{"anyOf":[{"required":["customer_ref","employee_ref"]},{"required":["customer_ref","lead_ref"]},{"required":["customer_ref","vendor_ref"]},{"required":["employee_ref","lead_ref"]},{"required":["employee_ref","vendor_ref"]},{"required":["lead_ref","vendor_ref"]}]},"properties":{"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"employee_ref":{"description":"The employee list contains payroll information about each of the company’s employees.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_done":{"description":"If `is_done` is true, this “to do” task has been completed. The default value of `is_done` is false.","type":"boolean"},"lead_ref":{"description":"The lead list contains information about leads for a company.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"notes":{"description":"Additional information.","type":"string"},"priority":{"description":"Priority may have one of the following values: Low [DEFAULT], Medium, High","enum":["High","Low","Medium"],"type":"string"},"reminder_date":{"description":"The date on which the contents of the Notes string will appear on the Reminder list within QuickBooks.","format":"date","type":"string"},"reminder_time":{"description":"The time on which the contents of the Notes string will appear on the Reminder list within QuickBooks.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"type":{"description":"Type may have one of the following values: Task [DEFAULT], Call, Fax, Email, Meeting, Appointment","enum":["Appointment","Call","Email","Fax","Meeting","Task"],"type":"string"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"ToDoRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowChartTemplate":{"description":"Any JSON value. Strings may hold \\${...} references; a map may hold the reserved \"\\$from\" key, whose rendered map the rest of the map is deep-merged onto. A map holding \"\\$map\" is a list built from another: {\"\\$map\": \"\\${vars.items}\", \"as\": \"item\", \"template\": ...} renders template once per element, with the element at each.\\<as>, its position at each.index and the length at each.count. With \"key\" (a template per element), it is an object instead: each element's template under the key or keys it renders.\n\n{\"\\$add\": [...]} sums its operands and {\"\\$default\": [...]} is the first that renders to something. {\"\\$merge\": [a, b, ...]} deep-merges each object onto the ones before it, as \"\\$from\" does (objects merge key by key; lists and scalars replace; an operand that renders to nothing is skipped). {\"\\$find\": \"\\${vars.items}\", \"where\": condition} is the first element the condition holds for (at each.\\<as>), or nothing.\n\n{\"\\$refs\": \"\\${input.params}\", \"operation\": \"invoice.create\"} lists an add's references, or with \"list_ids\" puts their ListIDs back. {\"\\$read\": id, \"operation\": an add} reads that record whole. {\"\\$kind_name\": \"\\${input.kind}\"} is a kind, or an operation's, as a person reads it (Customer, Service item, Invoice for invoice.create), for a question's details; with \"as\": \"noun\", mid-sentence (customer). {\"\\$format\": \"\\${vars.holder.balance}\", \"as\": \"amount\"} is a value as a person reads it: an amount (1,250.00) or, with \"as\": \"date\", a date or date-time's date (Mar 2, 2024), after an optional \"prefix\" (\"added \"); nothing renders to nothing, prefix and all. No other \\$-prefixed key is allowed.","if":{"type":"object"},"then":{"properties":{"$add":{"description":"The sum of its operands: numbers, or templates that render to numbers; nothing counts as 0.","minItems":1,"type":"array"},"$default":{"description":"The first of its candidates that renders to something other than nothing or an empty string.","minItems":1,"type":"array"},"$find":{"description":"A template that renders to a list. With \"where\" (a condition, required) and \"as\" (default item): the first element for which the condition holds, the element at each.\\<as>, each.index and each.count; nothing when none does. Only \\$find, as and where.","type":"string"},"$format":{"description":"A template for a value, shown as a person reads it, by \"as\" (required): amount, a number with two decimals and thousands separators (1,250.00); date, a date or date-time as its date where it was written (Mar 2, 2024). With \"prefix\" (a string), that comes first (\"added \"). Nothing, or only spaces, renders to nothing, prefix and all; a value it can't read is shown as it is. For a question's details and a choice's detail. Only \\$format, as and prefix.","type":["string","object"]},"$from":{"type":"string"},"$kind_name":{"description":"A kind or an operation id, or a template for one (customer, item_service, invoice.create, \\${input.kind}): its name as a person reads it -- Customer, Service item, Sales tax code, Invoice -- or nothing for anything but a non-empty string. For a question's details. With \"as\": \"noun\", as it reads mid-sentence (customer, service item, invoice), for a message or a label. Only \\$kind_name and as.","type":"string"},"$map":{"description":"A template that renders to a list. With \"template\" (required) and \"as\" (default item): the list of the template rendered once per element, the element at each.\\<as>, each.index and each.count. With \"key\" too (a template rendered per element, such as \\${each.ref.paths}, to a string or a list of strings): an object, each element's rendered template under its key or keys. Only \\$map, as, template and key.","type":"string"},"$merge":{"description":"Objects, or templates that render to objects, each deep-merged onto the ones before it: objects merge key by key, lists and scalars replace. An operand that renders to nothing is skipped. Alone in its object.","minItems":1,"type":"array"},"$read":{"description":"A record's id, or a template for it. With \"operation\" (an add's operation id, or a template; required): {\"operation\", \"params\"}, the query that reads the record that add makes, whole, by that id -- for a transaction add its type's query by txn_id with the flag that asks for its lines (include_line_items, or a build assembly's include_component_line_items), for a list add its type's query by list_id. A request state sends it with \"operation\": \"\\${vars.read.operation}\" and \"params\": {\"\\$from\": \"\\${vars.read.params}\"}. Only \\$read and operation.","type":"string"},"$refs":{"description":"An add's params (an object, or a template for one). With \"operation\" (the add's operation id, or a template; required): the distinct references the params make, in the order they first appear -- every *_ref field the operation has, its kind derived from the field's name (customer_ref is customer, ar_account_ref account, item_group_ref item_group), one entry per kind and full name with every path it appears at: {kind, field, full_name, name, parent, list_id, paths}. A kind with no full-name lookup (template) is left out.\n\nWith \"adds\" (a list of {kind, add, fields, accept}, as ensure takes them) and \"rules\" (an object of kind to ensure, create or must_exist; ensure by default), each also has \"rule\", \"ensure\": {kind, add}, the add from adds that makes it, one of its name alone under create, or none, \"pick\", true when there is no add, and \"fields\" and \"accept\" from its entry in adds, for resolve.\n\nWith \"found\" (the response of a for-each over the references: its data and outcomes, one per reference in order), each also has \"outcome\", \"how\" and \"record\" from its element (null for one the loop never reached); with \"made\" too (the response of a for-each over the ones found answered not_found), those take its outcome and record. \"missing\": true keeps the references whose outcome is still not_found.\n\nWith \"list_ids\" instead (one per reference, in that order), it is the params, every reference replaced by {\"list_id\": ...}. Only \\$refs, operation, adds, rules, found, made, missing and list_ids.","type":["string","object"]}},"propertyNames":{"not":{"pattern":"^\\$(?!(from|map|add|default|merge|find|refs|read|kind_name|format)$)"}}}},"listEntities_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"oneOf":[{"properties":{"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"mobile":{"description":"Mobile telephone number.","type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"job_projected_end_date":{"description":"The date on which work for a sub-customer is expected to be complete; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","format":"date","type":"string"},"delivery_method":{"enum":["Email","Fax","Print"],"type":"string"},"fax":{"description":"Fax number.","type":"string"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"ship_to_address":{"items":{"properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"default_ship_to":{"description":"Flag that address is the default ship to address.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"type":"array"},"type":{"const":"customer","description":"Which record type this is; the query answers with several."},"preferred_payment_method_ref":{"description":"Refers to a PaymentMethod object. In a request, if a `preferred_payment_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"alt_contact":{"description":"The name of an alternate contact person for a vendor, customer, or “other name” entry.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"job_status":{"description":"`job_status` Status information about a sub-customer; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","enum":["Awarded","Closed","InProgress","None","NotAwarded","Pending"],"type":"string"},"customer_type_ref":{"description":"Customer types allow business owners to categorize customers in ways that are meaningful for their businesses. For example, a customer type might indicate which industry a customer represents, or which part of the country a customer is in. A `customer_type_ref` aggregate refers to one of the types on the CustomerType list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"job_start_date":{"description":"The date on which work for a sub-customer was started; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","format":"date","type":"string"},"credit_limit":{"description":"Set and returned as a positive number that indicates a customer’s or vendor’s credit limit. If no value has been defined, there is no credit limit.","type":"number"},"bill_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"additional_notes_ret":{"items":{"properties":{"date":{"description":"The date the note was updated.","format":"date","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"note_id":{"description":"The ID of the note.","type":"integer"}},"type":"object"},"type":"array"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"email":{"description":"E-mail address.","type":"string"},"credit_card_info":{"description":"Customer’s credit-card information.","properties":{"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"}},"type":"object"},"contacts_ret":{"items":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_statement_with_parent":{"type":"boolean"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"phone":{"description":"The telephone number.","type":"string"},"job_desc":{"description":"A short job description for a sub-customer; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","type":"string"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"job_type_ref":{"description":"Job type can be used to separate jobs into any categories that are meaningful to the business. A `job_type_ref` aggregate refers to a job type on the JobType list. In a request, if a `job_type_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"balance":{"description":"A positive number indicates money owed by the customer. Compare with `total_balance`.","type":"number"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"print_as":{"description":"By default within QuickBooks, the `print_as` element is the same as the Name element.","type":"string"},"total_balance":{"description":"Total balance for this customer, including all this customer’s jobs (subcustomers). A positive number indicates money that the customer owes. If a customer doesn’t have any subcustomers, `total_balance` and Balance are the same.","type":"number"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"cc":{"description":"Email address that would be carbon copied or CC.","type":"string"},"suffix":{"type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_country":{"description":"The country that sales tax is collected for.","enum":["Australia","Canada","UK","US"],"type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"job_end_date":{"description":"The date on which work for a sub-customer was completed; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","format":"date","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"pager":{"description":"The pager number.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_registration_number":{"description":"The tax registration number used in CA and UK.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"resale_number":{"description":"The customer’s resale number, if they have one. This number won’t affect reports or sales tax calculations.","type":"string"},"notes":{"description":"Not supported.","type":"string"},"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"},"preferred_delivery_method":{"description":"Preference for how invoices are delivered.","enum":["Email","Fax","None"],"type":"string"}},"required":["type"],"title":"CustomerRet","type":"object"},{"properties":{"department":{"description":"The name of the department in the employment job details section.","type":"string"},"mobile":{"description":"Mobile telephone number.","type":"string"},"work_auth_expire_date":{"description":"Date the employee’s work authorization expires.","format":"date","type":"string"},"employee_type":{"description":"`employee_type` can affect payroll taxes for an employee. A statutory employee is a person who is defined as an employee by statute. Usually an owner or partner will be on the Other Names list, but if they are on the Employee list, their `employee_type` will be Owner.","enum":["Officer","Owner","Regular","Statutory"],"type":"string"},"disabled":{"description":"Is employee disabled?","enum":["No","Yes"],"type":"string"},"ssn":{"description":"Social security number. When you add an SSN value to an employee record, it doesn’t have to include dashes; for example, either 123-45-6789 or 123456789 would be valid.","type":"string"},"fax":{"description":"Fax number.","type":"string"},"hired_date":{"description":"An employee’s date of hire.","format":"date","type":"string"},"type":{"const":"employee","description":"Which record type this is; the query answers with several."},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"employee_payroll_info":{"description":"Pay information for this employee.","not":{"anyOf":[{"required":["clear_earnings","earnings"]}]},"properties":{"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"clear_earnings":{"description":"If `clear_earnings` is set to true, the earnings will be deleted for this employee.\n\nChoose at most one of: `clear_earnings`, or `earnings`.","type":"boolean"},"earnings":{"description":"Choose at most one of: `clear_earnings`, or `earnings`.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"payroll_item_wage_ref":{"description":"Each payroll wage item describes and names a payment scheme, for example, Regular Pay or Overtime Pay. A `payroll_item_wage_ref` aggregate refers to one of these wage items. In a request, if a `payroll_item_wage_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"rate":{"description":"Indicates the price of something.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"}},"type":"object"},"type":"array"},"pay_period":{"description":"Indicates how often employees are paid. If you include a blank `pay_period` element in an EmployeeMod message, you’ll receive an error. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","enum":["Biweekly","Daily","Monthly","Quarterly","Semimonthly","Weekly","Yearly"],"type":"string"},"sick_hours":{"description":"Describes how “sick time” is accrued for this employee, along with how many sick hours the employee has accrued.","properties":{"accrual_period":{"description":"Indicates how an employee accrues time off. If you include a blank `accrual_period` element in an EmployeeMod message, you’ll receive an error. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","enum":["BeginningOfYear","EveryHourOnPaycheck","EveryPaycheck"],"type":"string"},"accrual_start_date":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the date on which sick leave or vacation hours in the current year began to accrue.","format":"date","type":"string"},"hours_accrued":{"description":"The number of hours that the employee will accrue per accrual period. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"},"hours_available":{"description":"The total number of hours currently available for the employee to use. If this value is empty, it will default to 0.","type":"string"},"hours_used":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the number of sick leave or vacation hours used in the current year.","type":"string"},"is_resetting_hours_each_new_year":{"description":"Indicates whether or not the hours accrued resets to zero at the beginning of the new year. If you include a blank `is_resetting_hours_each_new_year` element in an EmployeeMod message, you’ll receive an error.","type":"boolean"},"maximum_hours":{"description":"The maximum number of hours that the employee can accrue. (QuickBooks itself doesn’t enforce this limit, however. `hours_available` can be greater than `maximum_hours`.) The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"}},"type":"object"},"use_time_data_to_create_paychecks":{"description":"Indicates whether time data is used to create paychecks for this employee.","enum":["DoNotUseTimeData","NotSet","UseTimeData"],"type":"string"},"vacation_hours":{"description":"Describes how vacation time is accrued for this employee, along with how many vacation hours the employee has accrued.","properties":{"accrual_period":{"description":"Indicates how an employee accrues time off. If you include a blank `accrual_period` element in an EmployeeMod message, you’ll receive an error. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","enum":["BeginningOfYear","EveryHourOnPaycheck","EveryPaycheck"],"type":"string"},"accrual_start_date":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the date on which sick leave or vacation hours in the current year began to accrue.","format":"date","type":"string"},"hours_accrued":{"description":"The number of hours that the employee will accrue per accrual period. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"},"hours_available":{"description":"The total number of hours currently available for the employee to use. If this value is empty, it will default to 0.","type":"string"},"hours_used":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the number of sick leave or vacation hours used in the current year.","type":"string"},"is_resetting_hours_each_new_year":{"description":"Indicates whether or not the hours accrued resets to zero at the beginning of the new year. If you include a blank `is_resetting_hours_each_new_year` element in an EmployeeMod message, you’ll receive an error.","type":"boolean"},"maximum_hours":{"description":"The maximum number of hours that the employee can accrue. (QuickBooks itself doesn’t enforce this limit, however. `hours_available` can be greater than `maximum_hours`.) The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"}},"type":"object"}},"type":"object"},"part_or_full_time":{"description":"Full or Part time status of the employee.","enum":["FullTime","PartTime"],"type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"us_citizen":{"description":"Is employee a US citizen?","enum":["No","Yes"],"type":"string"},"us_veteran":{"description":"Is employee a US veteran?","enum":["No","Yes"],"type":"string"},"gender":{"description":"The gender of this employee.","enum":["Female","Male"],"type":"string"},"billing_rate_ref":{"description":"Billing rates are used to override the service item rate in a time transaction (TimeTrackingAdd) based on the employee or vendor performing the work. Billing rates are assigned to an employee or a vendor to specify overrides to service items.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"additional_notes_ret":{"items":{"properties":{"date":{"description":"The date the note was updated.","format":"date","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"note_id":{"description":"The ID of the note.","type":"integer"}},"type":"object"},"type":"array"},"description":{"description":"The description details in the employment job details section.","type":"string"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"email":{"description":"E-mail address.","type":"string"},"supervisor_ref":{"description":"The name of a customer, vendor, employee, or person on the “other names” list in the employment job details section.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pager_pin":{"description":"A personal identification number for this employee’s pager.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"military_status":{"description":"Military status if the employee is a US veteran.","enum":["Active","Reserve"],"type":"string"},"phone":{"description":"The telephone number.","type":"string"},"key_employee":{"description":"Is employee a key or critical employee.","enum":["No","Yes"],"type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"employee_address":{"description":"If an address request fails, some combination of address fields might be too long. If you use payroll, you must specify the employee’s city, state (or province), ZIP (or postal) code, and at least one line of the street address. (Note that the State element has restrictions when it’s used in the `employee_address` aggregate. For more information, click State in the table.)","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"ethnicity":{"description":"Is employee a US citizen?","enum":["AmericianIndian","Asian","Black","Hawaiian","Hispanic","TwoOrMoreRaces","White"],"type":"string"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"print_as":{"description":"By default within QuickBooks, the `print_as` element is the same as the Name element.","type":"string"},"emergency_contacts":{"description":"Emergency Contact information for the employee.","properties":{"primary_contact":{"description":"Primary emergency contact information for the employee.","properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"},"relation":{"description":"Relationship of emergency contact information to the employee.","enum":["Brother","Daughter","Father","Friend","Mother","Other","Partner","Sister","Son","Spouse"],"type":"string"}},"type":"object"},"secondary_contact":{"description":"Secondary emergency contact information for the employee.","properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"},"relation":{"description":"Relationship of emergency contact information to the employee.","enum":["Brother","Daughter","Father","Friend","Mother","Other","Partner","Sister","Son","Spouse"],"type":"string"}},"type":"object"}},"type":"object"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"birth_date":{"description":"Date of birth.","format":"date","type":"string"},"released_date":{"description":"The date on which this person’s employment with the company ended.","format":"date","type":"string"},"suffix":{"type":"string"},"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"adjusted_service_date":{"description":"Adjusted service date for the employee.","format":"date","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"pager":{"description":"The pager number.","type":"string"},"target_bonus":{"description":"The target bonus amount in the employment job details section.","type":"number"},"exempt":{"description":"Exempt or Non-exempt status of the employee.","enum":["Exempt","NonExempt"],"type":"string"},"disability_desc":{"description":"Description of employee’s disablitily.","type":"string"},"original_hire_date":{"description":"Original hire date the employee was hired.","format":"date","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"on_file":{"description":"Is the employee’s I-9 on file?","enum":["No","Yes"],"type":"string"},"notes":{"description":"Not supported.","type":"string"},"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"}},"required":["type"],"title":"EmployeeRet","type":"object"},{"properties":{"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"},"alt_contact":{"description":"The name of an alternate contact person for a vendor, customer, or “other name” entry.","type":"string"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"email":{"description":"E-mail address.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"fax":{"description":"Fax number.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"notes":{"description":"Not supported.","type":"string"},"other_name_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"other_name_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"phone":{"description":"The telephone number.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"type":{"const":"other_name","description":"Which record type this is; the query answers with several."}},"required":["type"],"title":"OtherNameRet","type":"object"},{"properties":{"vendor_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"mobile":{"description":"Mobile telephone number.","type":"string"},"tax_on_sales_account_ref":{"description":"Account used for taxes on sales in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"prefill_account_ref":{"items":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"type":"array"},"is_sales_tax_agency":{"description":"Indicates whether the entity is a sales tax agency.","type":"boolean"},"is_tax_agency":{"description":"Is the current entity a tax agency.","type":"boolean"},"is_tax_on_tax":{"description":"For vendor in CA or UK, is there tax charged on top of tax.","type":"boolean"},"fax":{"description":"Fax number.","type":"string"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"vendor_type_ref":{"description":"Vendor types allow business owners to categorize vendors in ways that are meaningful for their businesses. For example, a vendor type might indicate which industry a vendor represents, or which part of the country a vendor is in. A `vendor_type_ref` aggregate refers to one of the types on the VendorType list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_tax_tracked_on_sales":{"description":"This flag is used for CA or UK and whether tax is tracked on sales.","type":"boolean"},"type":{"const":"vendor","description":"Which record type this is; the query answers with several."},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"vendor_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"reporting_period":{"description":"Vendor reporting period for CA or UK. This can be monthly or quarterly.","enum":["Monthly","Quarterly"],"type":"string"},"alt_contact":{"description":"The name of an alternate contact person for a vendor, customer, or “other name” entry.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"billing_rate_ref":{"description":"Billing rates are used to override the service item rate in a time transaction (TimeTrackingAdd) based on the employee or vendor performing the work. Billing rates are assigned to an employee or a vendor to specify overrides to service items.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_limit":{"description":"Set and returned as a positive number that indicates a customer’s or vendor’s credit limit. If no value has been defined, there is no credit limit.","type":"number"},"additional_notes_ret":{"items":{"properties":{"date":{"description":"The date the note was updated.","format":"date","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"note_id":{"description":"The ID of the note.","type":"integer"}},"type":"object"},"type":"array"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"email":{"description":"E-mail address.","type":"string"},"tax_on_purchases_account_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_vendor_eligible_for1099":{"description":"If `is_vendor_eligible_for1099` is set to true, `vendor_tax_ident` and `vendor_address` are required in a vendor add request message. Otherwise, `vendor_tax_ident` and `vendor_address` are optional.","type":"boolean"},"sales_tax_return_ref":{"description":"Sales tax return information.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"contacts_ret":{"items":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"phone":{"description":"The telephone number.","type":"string"},"vendor_tax_ident":{"description":"A character string that identifies a vendor.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"balance":{"description":"A positive number indicates money owed by the customer. Compare with `total_balance`.","type":"number"},"name_on_check":{"description":"The vendor’s name as it will appear on checks sent to the vendor. (Corresponds in the QuickBooks user interface to the “Print on Check as” field of the Edit Vendor and New Vendor windows.)","type":"string"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"cc":{"description":"Email address that would be carbon copied or CC.","type":"string"},"suffix":{"type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_country":{"description":"The country that sales tax is collected for.","enum":["Australia","Canada","UK","US"],"type":"string"},"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"type":"object"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"pager":{"description":"The pager number.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_tax_tracked_on_purchases":{"description":"This flag is used for CA or UK and whether tax is tracked on purchases.","type":"boolean"},"tax_registration_number":{"description":"The tax registration number used in CA and UK.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"notes":{"description":"Not supported.","type":"string"},"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"}},"required":["type"],"title":"VendorRet","type":"object"}]},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"ConnectionWebhook":{"description":"The body QuBe Sync POSTs to a connection's `webhook_url` when something happens to the connection (see the callback on Create a connection), signed with `X-QUBE-Signature` like every other QuBe Sync webhook. It says what happened and the connection as the event left it. Never the Web Connector's username or password, the onboarding link, the company file or anything from QuickBooks: read the connection (`links.self`) for more.","example":{"app_id":"98f339a4-32e8-424a-987e-ccaf5bcaa620","connection":{"id":"3f9c2a71-5d4e-4b8a-9c1f-7e2d6a5b8c90","last_connected_at":"2026-10-18T19:04:11Z","name":"Riverbend Electric","setup":"first","type":"standard"},"delivery_id":"0f8a6c2e-4b1d-4e7a-9c3f-2d5b8e1a7c40","event":"connection.connected","links":{"self":"https://qubesync.com/api/v2/connections/3f9c2a71-5d4e-4b8a-9c1f-7e2d6a5b8c90"},"revision":1,"sandbox":false,"timestamp":1792350252},"properties":{"app_id":{"format":"uuid","type":"string"},"connection":{"description":"The connection as the event left it, and what the event adds.","properties":{"expected_check_in_at":{"description":"`connection.stalled` only: when the Web Connector was due to check in, as the connection's `next_check_in_expected_at` said then. With a `stall_reason` of `quickbooks_unavailable` the Web Connector is checking in, so this is its next try after QuBe Sync's back-off, and may be in the future.","format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"last_connected_at":{"description":"When the Web Connector last checked in, as of the event. `null` on a `connection.setup_cancelled` for a connection that has never connected.","format":"date-time","nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"},"setup":{"description":"`connection.connected` only. `first`: the connection's first check-in. `again`: the first check-in after your customer chose Set up again, or Use a different company file, on the connection's onboarding page, with a new Web Connector entry.","enum":["first","again"],"type":"string"},"stall_reason":{"description":"`connection.stalled` only: why your requests are waiting. `not_checking_in`: the Web Connector hasn't checked in when it was due, so the QuickBooks computer is probably off or offline; ask your customer to turn it on and check the Web Connector. `quickbooks_unavailable`: the Web Connector is checking in but can't reach QuickBooks, usually because QuickBooks isn't open with the company file, or is showing a dialog; ask your customer to open QuickBooks. A stall can change reason while it goes on (a computer turned on in the morning, before QuickBooks is open): the event then comes again with the new reason and a newer `revision`.","enum":["not_checking_in","quickbooks_unavailable"],"type":"string"},"stalled_at":{"description":"`connection.resumed` only: when the stall it ends began, its `connection.stalled`.","format":"date-time","type":"string"},"type":{"enum":["standard","realtime","simulated"],"type":"string"},"waiting":{"description":"`connection.stalled` only: your requests waiting to be taken (`waiting` or `retryable`).","properties":{"oldest_queued_at":{"description":"When the oldest was queued.","format":"date-time","type":"string"},"requests":{"description":"How many.","type":"integer"}},"required":["requests","oldest_queued_at"],"type":"object"}},"required":["id","name","type","last_connected_at"],"type":"object"},"delivery_id":{"description":"New for each event, and the same on every retry of it: take each one once.","format":"uuid","type":"string"},"event":{"description":"`connection.connected`: the Web Connector checked in for the first time, or for the first time since Set up again. `connection.setup_cancelled`: your customer chose Cancel setup on the onboarding page. `connection.company_file_changed`: your customer chose Use a different company file on the onboarding page, so the QuickBooks ids you stored for this connection are the old file's: set them aside until you've checked them on the new file. `connection.stalled`: your requests have waited past the grace, for the reason `connection.stall_reason` gives (sent again, with the new reason, if it changes while the stall goes on). `connection.resumed`: they aren't any more.","enum":["connection.connected","connection.setup_cancelled","connection.company_file_changed","connection.stalled","connection.resumed"],"type":"string"},"links":{"properties":{"self":{"description":"The connection in the v2 API, as it is now.","format":"uri","type":"string"}},"required":["self"],"type":"object"},"revision":{"description":"The connection's event counter: one up with every event, across all of them. Deliveries can come out of order (a retried `connection.stalled` after its `connection.resumed`, say), so apply an event only when its revision is newer than the last you applied.","type":"integer"},"sandbox":{"type":"boolean"},"timestamp":{"description":"Unix seconds; also the `t=` in the signature header.","type":"integer"}},"required":["event","delivery_id","revision","timestamp","app_id","sandbox","connection","links"],"type":"object"},"createTimeTracking_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"duration":{"description":"Time spent doing the work. In a TimeTrackAdd request, notice that although you can specify seconds, seconds aren’t returned in the response because the UI doesn’t use seconds.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In JournalCreditLine and JournalDebitLine messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"item_service_ref":{"description":"A service item refers to services that a business charges for or purchases. Examples include specialized labor, consulting hours, and professional fees. An `item_service_ref` aggregate refers to an item on the ItemService list. In a request, if an `item_service_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"notes":{"description":"Additional information.","type":"string"},"payroll_item_wage_ref":{"description":"Each payroll wage item describes and names a payment scheme, for example, Regular Pay or Overtime Pay. A `payroll_item_wage_ref` aggregate refers to one of these wage items. In a request, if a `payroll_item_wage_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"rate":{"type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"TimeTrackingRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listStandardTerms_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"discount_pct":{"description":"If payment is received within `std_discount_days` number of days, then this discount will apply to the payment. `discount_pct` must be between 0 and 100.","type":"number"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"std_discount_days":{"description":"If payment is received within `std_discount_days` number of days, then `discount_pct` will apply to the payment.","type":"integer"},"std_due_days":{"description":"The number of days until payment is due.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"NameIndex":{"description":"QuBe Sync's index of the names in this connection's company file, for finding records by name (see Match a name): customers, vendors, employees and other names, items, accounts, classes, and the other lists a transaction names (terms, sales tax codes, payment and ship methods, price levels, customer, vendor and job types, sales reps and customer messages). Only `realtime` and `simulated` connections can have one, and it is built the first time something on the connection needs matching: a match, or opting in (`POST /connections/{connection_id}/name-index`). QuBe Sync then reads the lists from QuickBooks itself, a step at a time, and your requests always go first; those reads never appear among your requests and never send a webhook. An index unused for 30 days is deleted, and built again the next time it's needed.","properties":{"as_of":{"description":"When the index last caught up with QuickBooks: changes made in QuickBooks since then aren't in it yet. While it's used, it catches up after a Web Connector session that brought your requests, at most every 5 minutes. `null` unless `ready`.","format":"date-time","nullable":true,"type":"string"},"records":{"description":"How many records the index holds; while `building`, how many are in so far. `null` when `not_built` or `unavailable`.","nullable":true,"type":"integer"},"state":{"description":"`ready`: every list is in. `building`: QuBe Sync is reading the lists from QuickBooks, the first time, or again after the connection was pointed at another company file, went 90 days without your requests, or a build gave up. `not_built`: nothing on the connection has needed matching yet, or the index went unused for 30 days and was deleted. `unavailable`: the connection is `standard`, which can't have one.","enum":["ready","building","not_built","unavailable"],"type":"string"}},"required":["state","as_of","records"],"type":"object"},"listPaychecks_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"address":{"properties":{"addr1":{"type":"string"},"addr2":{"type":"string"},"addr3":{"type":"string"},"addr4":{"type":"string"},"addr5":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"note":{"type":"string"},"postal_code":{"type":"string"},"state":{"type":"string"}},"type":"object"},"amount":{"type":"number"},"class_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"edit_sequence":{"type":"string"},"employee_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_accruing_time":{"type":"boolean"},"is_to_be_printed":{"type":"boolean"},"memo":{"type":"string"},"pay_period_begin_date":{"format":"date","type":"string"},"pay_period_end_date":{"format":"date","type":"string"},"paycheck_line_ret":{"items":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"amount":{"type":"number"},"calculated_amount":{"type":"number"},"class_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"company_paid_attribute":{"enum":["IsExpense","IsLiability","IsLiabilityAndExpense","NotApplicable"],"type":"string"},"customer_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"direct_deposit_account_info":{"properties":{"account_number":{"type":"string"},"bank_account_type":{"enum":["Checking","Savings"],"type":"string"},"bank_name":{"type":"string"},"routing_number":{"type":"string"}},"type":"object"},"experience_mod_rate_amount":{"type":"number"},"hours_worked":{"type":"string"},"income_subject_to_tax_amount":{"type":"number"},"is_amount_overridden":{"type":"boolean"},"is_prorated":{"type":"boolean"},"memo":{"type":"string"},"other_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"quantity":{"type":"number"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"tips_wage_base_amount":{"type":"number"},"txn_line_id":{"type":"string"},"wage_base_amount":{"type":"number"},"workers_comp_amount":{"type":"number"},"workers_comp_code_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"year_to_date_amount":{"type":"number"}},"type":"object"},"type":"array"},"payroll_date":{"format":"date","type":"string"},"ref_number":{"type":"string"},"sick_hours_accrued":{"type":"string"},"sick_hours_available":{"type":"string"},"tax_table_version":{"type":"integer"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"txn_date":{"format":"date","type":"string"},"txn_id":{"type":"string"},"txn_number":{"type":"integer"},"vacation_hours_accrued":{"type":"string"},"vacation_hours_available":{"type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listBillToPays_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"not":{"anyOf":[{"required":["bill_to_pay","credit_to_apply"]}]},"properties":{"bill_to_pay":{"description":"Each `bill_to_pay` object contains information about a bill with a positive `amount_due`.\n\nChoose at most one of: `bill_to_pay`, or `credit_to_apply`.","properties":{"amount_due":{"description":"The total monetary amount shown on a bill or packing slip received from a vendor. `amount_due` will be the total of the amounts in the expense lines, item lines, and item group lines. `amount_due` minus any credits or discounts equals the OpenAmount.","type":"number"},"amount_due_in_home_currency":{"description":"Amount due in units of the home currency.","type":"number"},"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"credit_to_apply":{"description":"Each `credit_to_apply` object contains information about a credit memo that is linked to this payee.\n\nChoose at most one of: `bill_to_pay`, or `credit_to_apply`.","properties":{"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_remaining":{"description":"Available credit.","type":"number"},"credit_remaining_in_home_currency":{"description":"The amount of the remaining credit, expressed in units of the current home currency.","type":"number"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3120,3140,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","object_not_found","invalid_reference","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowSummary":{"properties":{"description":{"nullable":true,"type":"string"},"key":{"type":"string"},"links":{"type":"object"},"name":{"type":"string"},"promoted_from":{"description":"Set when the published version arrived by promotion from another app of this organization: `app`, `version` and `by` (who moved it).","nullable":true,"type":"object"},"published_version":{"description":"The version a production connection runs. Null when nothing is published.","nullable":true,"type":"integer"},"state":{"enum":["draft","published"],"type":"string"},"template":{"description":"The shipped template this workflow's chart came from, and whether that template has changed since. Installing a template copies its chart, so a later fix to the template reaches this workflow only when you install it again: `POST /workflow-templates/{key}/install` with `replace: true` (plus `as`, this workflow's key, when it differs from the template's), and `publish: true` to make it live. The workflows a template calls report their own. Null for a workflow whose chart has never been a version of a shipped template, such as one you wrote, or adapted from a template before saving it.","nullable":true,"properties":{"key":{"description":"The template's key, as `GET /workflow-templates/{key}` takes it.","type":"string"},"status":{"description":"About the working copy, which is what installing again replaces; `working_copy_changed` says whether the published version has caught up. `up_to_date`: the template has not changed since, or this is its current chart. `update_available`: the template has changed and this chart has not, so installing it again loses nothing. `update_available_customized`: the template has changed, and so has this chart since it was installed; installing again discards those edits, so compare it with the template first. `removed`: QuBe Sync no longer ships that template; the workflow keeps working as it is.","enum":["up_to_date","update_available","update_available_customized","removed"],"type":"string"}},"required":["key","status"],"type":"object"},"updated_at":{"format":"date-time","type":"string"},"working_copy_changed":{"description":"True when the working copy would run differently from the published version. Canvas positions do not count.","type":"boolean"}},"type":"object"},"listCustomSummaryReports_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"col_desc":{"items":{"properties":{"col_id":{"description":"An identifying number that corresponds to the position of this column in the report. The columns are numbered from left to right, starting with 1.","type":"integer"},"col_title":{"items":{"type":"string"},"type":"array"},"col_type":{"description":"The type of data that this column contains. `col_type` values are formatted types. (Returned ctPercent values, for example, will have digits after the decimal points, and ctAddr1 values will be strings.)","enum":["Account","Addr1","Addr2","Addr3","Addr4","Addr5","Aging","Amount","AmountDifference","AverageCost","BilledDate","BillingStatus","Blank","CalculatedAmount","Class","ClearedStatus","CostPrice","CreateDate","Credit","CustomField","Date","Debit","DeliveryDate","DueDate","Duration","EarliestReceiptDate","EstimateActive","FOB","IncomeSubjectToTax","Invoiced","IsAdjustment","Item","ItemDesc","ItemVendor","Label","LastModifiedBy","LatestOrPriorState","Memo","ModifiedTime","Name","NameAccountNumber","NameAddress","NameCity","NameContact","NameEmail","NameFax","NamePhone","NameState","NameZip","OpenBalance","OriginalAmount","PONumber","PaidAmount","PaidStatus","PaidThroughDate","PaymentMethod","PayrollItem","Percent","PercentChange","PercentOfTotalRetail","PercentOfTotalValue","PhysicalCount","PrintStatus","ProgressAmount","ProgressPercent","Quantity","QuantityAvailable","QuantityOnHand","QuantityOnOrder","QuantityOnPendingBuild","QuantityOnSalesOrder","ReceivedQuantity","RefNumber","ReorderPoint","RetailValueOnHand","RunningBalance","SONumber","SSNOrTaxID","SalesPerWeek","SalesRep","SalesTaxCode","ShipDate","ShipMethod","ShipToAddr1","ShipToAddr2","ShipToAddr3","ShipToAddr4","ShipToAddr5","SourceName","SplitAccount","SuggestedReorder","TaxLine","TaxTableVersion","Terms","Total","TxnID","TxnNumber","TxnType","UnitPrice","UserEdit","ValueOnHand","WageBase","WageBaseTips"],"type":"string"},"data_type":{"description":"The data type: IDTYPE, STRTYPE, and so on.","enum":["AMTTYPE","BOOLTYPE","DATETIMETYPE","DATETYPE","ENUMTYPE","GUIDTYPE","IDTYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STRTYPE","TIMEINTERVALTYPE"],"type":"string"}},"type":"object"},"type":"array"},"num_col_title_rows":{"description":"The number of rows to allocate for column titles. Although this number is usually 1, with some reports it is 2 or 3. (For an example of column titles that span multiple rows, look at a ProfitAndLossByJob report in QuickBooks.)","type":"integer"},"num_columns":{"description":"The number of columns in the report.","type":"integer"},"num_rows":{"description":"The number of rows in the report.","type":"integer"},"report_basis":{"description":"If `report_basis` is rbCash, the report bases income and expenses on the dates when money changed hands.rbAccrual, the report bases income on the dates when customers were invoiced and bases expenses on the dates when bills were entered.rbNone, the report uses the default `report_basis`, which is either the QuickBooks Preference setting or the QuickBooks default for a given type of report.","enum":["Accrual","Cash","None"],"type":"string"},"report_data":{"description":"If the report contains any data, it is given row-by-row in a `report_data` aggregate.","properties":{"data_row":{"description":"A data row contains the actual data for each column.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"subtotal_row":{"description":"A row that contains a calculated subtotal of the data in all the rows since the last SubTotalRow and, usually, a single underline. There can be multiple SubTotalRow aggregates in a report.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"text_row":{"description":"A text row contains only text and is used mainly for headings.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"type":"string"},"type":"array"},"total_row":{"description":"A row that contains a calculated total of all the data that has come before and a double underline. There will only be one `total_row` per report. If `total_row` doesn’t include any numerical values, the columns required to show the total values aren’t part of the report. These columns weren’t included when the report was customized.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"}},"type":"object"},"report_subtitle":{"description":"The subtitle for this report.","type":"string"},"report_title":{"description":"The main title for this report.","type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateAccount_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"},"account_type":{"description":"The type of QuickBooks account. You can’t create or modify a non-posting account through the SDK, because QuickBooks creates these accounts behind the scenes. This means that you can’t send an AccountAdd request with an `account_type` of NonPosting.","enum":["AccountsPayable","AccountsReceivable","Bank","CostOfGoodsSold","CreditCard","Equity","Expense","FixedAsset","Income","LongTermLiability","NonPosting","OtherAsset","OtherCurrentAsset","OtherCurrentLiability","OtherExpense","OtherIncome"],"type":"string"},"balance":{"description":"Current balance of this account only (versus `total_balance`). Income accounts and balance sheet accounts don’t necessarily have balances.","type":"number"},"bank_number":{"description":"The bank account number or an identifying note about the account. If a `bank_number` exists in a QuickBooks company file, it will only be returned to applications that have been granted permission to access sensitive data and that are using SDK v2.0 or greater.","type":"string"},"cash_flow_classification":{"description":"Indicates how this account is classified for cash flow reporting. If the value is cfcNone, the account hasn’t been classified. If the value is cfcNotApplicable, the account doesn’t qualify to be classified. (For example, a bank account that tracks cash transactions isn’t part of a cash flow report.)","enum":["Financing","Investing","None","NotApplicable","Operating"],"type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"detail_account_type":{"enum":["AP","AR","AccumulatedAdjustment","AccumulatedAmortization","AccumulatedAmortizationOfOtherAssets","AccumulatedDepletion","AccumulatedDepreciation","AdvertisingOrPromotional","AllowanceForBadDebts","Amortization","Auto","BadDebts","BankCharges","Buildings","CashOnHand","CharitableContributions","Checking","CommonStock","CostOfLabor","CostOfLaborCOS","CreditCard","DepletableAssets","Depreciation","DevelopmentCosts","DiscountsOrRefundsGiven","DividendIncome","DuesAndSubscriptions","EmployeeCashAdvances","Entertainment","EntertainmentMeals","EquipmentRental","EquipmentRentalCOS","FederalIncomeTaxPayable","FurnitureAndFixtures","Goodwill","Insurance","InsurancePayable","IntangibleAssets","InterestEarned","InterestPaid","Inventory","InvestmentMortgageOrRealEstateLoans","InvestmentOther","InvestmentTaxExemptSecurities","InvestmentUSGovObligations","Land","LeaseBuyout","LeaseholdImprovements","LegalAndProfessionalFees","Licenses","LineOfCredit","LoanPayable","LoansToOfficers","LoansToOthers","LoansToStockholders","MachineryAndEquipment","MoneyMarket","NonProfitIncome","NotesPayable","OfficeOrGeneralAdministrativeExpenses","OpeningBalanceEquity","OrganizationalCosts","OtherCostsOfServiceCOS","OtherCurrentAssets","OtherCurrentLiab","OtherFixedAssets","OtherInvestmentIncome","OtherLongTermAssets","OtherLongTermLiab","OtherMiscExpense","OtherMiscIncome","OtherMiscServiceCost","OtherPrimaryIncome","OwnersEquity","PaidInCapitalOrSurplus","PartnerContributions","PartnerDistributions","PartnersEquity","PayrollClearing","PayrollExpenses","PayrollTaxPayable","PenaltiesAndSettlements","PreferredStock","PrepaidExpenses","PrepaidExpensesPayable","PromotionalMeals","RentOrLeaseOfBuildings","RentsHeldInTrust","RentsInTrustLiab","RepairAndMaintenance","Retainage","RetainedEarnings","SalesOfProductIncome","SalesTaxPayable","Savings","SecurityDeposits","ServiceOrFeeIncome","ShareholderNotesPayable","ShippingFreightAndDelivery","ShippingFreightAndDeliveryCOS","StateOrLocalIncomeTaxPayable","SuppliesAndMaterials","SuppliesAndMaterialsCOGS","TaxExemptInterest","TaxesPaid","Travel","TravelMeals","TreasuryStock","TrustAccounts","TrustAccountsLiab","UndepositedFunds","Utilities","Vehicles"],"type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_account":{"description":"Indicates whether the account is used for tax.","type":"boolean"},"last_check_number":{"type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"special_account_type":{"description":"If `special_account_type` returns a value, then QuickBooks automatically created this account when it was needed. Some special accounts can’t be overridden, because QuickBooks uses them exclusively for special purposes.","enum":["AccountsPayable","AccountsReceivable","CondenseItemAdjustmentExpenses","CostOfGoodsSold","DirectDepositLiabilities","Estimates","ExchangeGainLoss","InventoryAssets","ItemReceiptAccount","OpeningBalanceEquity","PayrollExpenses","PayrollLiabilities","PettyCash","PurchaseOrders","ReconciliationDifferences","RetainedEarnings","SalesOrders","SalesTaxPayable","UncategorizedExpenses","UncategorizedIncome","UndepositedFunds"],"type":"string"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"tax_line_info_ret":{"description":"If the QuickBooks user has associated a tax form with this company file, they can also associate each account in the company file with a line of that tax form. (To check which tax form, if any, is associated with this company file, do a CompanyQuery and check the returned TaxForm value.)","properties":{"tax_line_id":{"description":"An internal representation of the tax line associated with this account.","type":"integer"},"tax_line_name":{"description":"The name of the tax line associated with this account, as it appears on the tax form.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"total_balance":{"description":"The balance for this object and all its subordinate objects. For example, the `total_balance` for XYZ Bank would be the total of the balances of all its subaccounts (checking, savings, and so on). If XYZ Bank didn’t have any subaccounts, `total_balance` and Balance would be the same.","type":"number"}},"title":"AccountRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createPayrollItemWorkersCompensation_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"edit_sequence":{"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_active":{"type":"boolean"},"is_tracked_by_cust_job":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"type":"object"},"list_id":{"type":"string"},"name":{"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_detail_type_value":{"type":"integer"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowChartPromptEnum":{"description":"The values a string or number field may take, each with what a person reads for it: the choice's field carries them, and an answer outside them is refused.","items":{"additionalProperties":false,"properties":{"label":{"type":"string"},"value":{"type":["string","number"]}},"required":["value"],"type":"object"},"minItems":1,"type":"array"},"listItemPayments_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listArRefundCreditCards_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"address":{"description":"If an address request fails, some combination of address fields might be too long. In a Check, BillPaymentCheck, or SalesTaxPaymentCheck message, Address is the address that will print on the check.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"memo":{"description":"Additional information.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"refund_applied_to_txn_ret":{"items":{"properties":{"credit_remaining":{"description":"Available credit.","type":"number"},"credit_remaining_in_home_currency":{"description":"The amount of the remaining credit, expressed in units of the current home currency.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"refund_amount":{"description":"Specifies the amount to be taken from the credit transaction you are linking via this aggregate. The amount specified in this aggregate can’t exceed the amount of the credit transaction you are linking. If you supply an amount that exceeds, you’ll get a runtime error.","type":"number"},"refund_amount_in_home_currency":{"description":"Specifies the amount to be taken from the credit transaction you are linking via this aggregate in the home currency.","type":"number"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"refund_from_account_ref":{"description":"In an ARRefundCreditCardAdd, the account which is the source of funds for the credit card refund. Normally this is Undeposited Funds. However, you can specify another account if you wish. If you specify nothing here, Undeposited Funds is used by default.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the home currency.","type":"number"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createStandardTerms_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"discount_pct":{"description":"If payment is received within `std_discount_days` number of days, then this discount will apply to the payment. `discount_pct` must be between 0 and 100.","type":"number"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"std_discount_days":{"description":"If payment is received within `std_discount_days` number of days, then `discount_pct` will apply to the payment.","type":"integer"},"std_due_days":{"description":"The number of days until payment is due.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"StandardTermsRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3040,3070,3100,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_amount","string_too_long","name_in_use","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateCheck_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"address":{"description":"If an address request fails, some combination of address fields might be too long. In a Check, BillPaymentCheck, or SalesTaxPaymentCheck message, Address is the address that will print on the check.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines. If a CheckAdd request doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate the Amount based on a Quantity of 1 and the suggested Cost.","type":"number"},"amount_in_home_currency":{"description":"Amount in units of the home currency.","type":"number"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines. If a CheckAdd request doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate the Amount based on a Quantity of 1 and the suggested Cost.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"The memo that is printed on the check itself.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"item_group_line_ret":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines. If a CheckAdd request doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate the Amount based on a Quantity of 1 and the suggested Cost.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines. If a CheckAdd request doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate the Amount based on a Quantity of 1 and the suggested Cost.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"linked_txn":{"items":{"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines. If a CheckAdd request doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate the Amount based on a Quantity of 1 and the suggested Cost.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date written on the check. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines. If a CheckAdd request doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate the Amount based on a Quantity of 1 and the suggested Cost.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"The memo that is printed on the check itself.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date written on the check. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"CheckRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"QueuedRequest":{"properties":{"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"Unique identifier for the queued request","format":"uuid","type":"string"},"inserted_at":{"description":"When the request was queued","format":"date-time","type":"string"},"iteration_state":{"description":"Whether this response is part of an ongoing iteration, and if so, whether more pages remain. Use this (not `state`) to tell whether a multi-page response is complete.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"properties":{"connection_ui":{"format":"uri","type":"string"},"pages":{"description":"The pages of a multi-page (iterated) response answered so far, oldest first, a page of them at a time (`page`, `page_size`), each with its own `iteration_state`. Each page is also delivered to `webhook_url` as it is answered.","format":"uri","type":"string"},"self":{"description":"This request, on demand (a dashboard link, a retry). The answer itself arrives at `webhook_url`.","format":"uri","type":"string"},"ui":{"description":"The request in the QuBe Sync dashboard.","format":"uri","type":"string"}},"required":["self","ui","connection_ui","pages"],"type":"object"},"original_request_id":{"description":"The id of the first page of this request's iteration. Equal to `id` on the first page itself.","format":"uuid","type":"string"},"page":{"description":"The page number, for a multi-page (iterated) response","nullable":true,"type":"integer"},"request_types":{"description":"The qbXML request type(s) compiled into this request","items":{"type":"string"},"type":"array"},"request_xml":{"description":"The qbXML sent to QuickBooks: compiled from the operation and its parameters, or as written for `POST /connections/{connection_id}/queued-requests`. A character above ASCII reaches QuickBooks as a character reference (`&#xE9;`).","type":"string"},"response_json":{"description":"QuBe Sync's summary of the answer, once the request is completed","nullable":true,"type":"object"},"response_xml":{"description":"The qbXML response from QuickBooks. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`.","nullable":true,"type":"string"},"state":{"description":"`waiting`/`retryable`/`ticketed`/`sent` while the Web Connector is on its way; `response_received` once QuickBooks answered successfully (read `response_json.data`, and `response_json.warning` when QuickBooks warned about something it did); `error` when it did not -- the Web Connector could not reach QuickBooks, the qbXML was rejected, or QuickBooks answered with a business error such as 3100 (then `error.error_type` is `quickbooks_business_error` and `response_json` still carries QuickBooks' own `{status: \"error\", error: {code, type, message}}`); `timed_out` when no answer came back (QuickBooks may still have applied it, so look before sending it again) and `discarded` when your app discarded it before the Web Connector picked it up. Both carry an `error`.","enum":["waiting","retryable","ticketed","sent","response_received","error","timed_out","discarded"],"type":"string"},"webhook_attempts":{"items":{"type":"object"},"type":"array"},"webhook_error":{"nullable":true,"type":"string"},"webhook_state":{"description":"State of the webhook delivery. not_applicable without a webhook_url, or when it names a reserved example domain such as example.com, which webhooks are never sent to.","enum":["not_applicable","pending","succeeded","failed"],"type":"string"},"webhook_url":{"format":"uri","nullable":true,"type":"string"}},"required":["id","state","request_xml","links"],"type":"object"},"WorkflowPromptColumn":{"description":"One column of a `rows` field: a field asked of each row that lists it.","properties":{"default":{"description":"One of `enum`'s values to start at, already chosen when the row shows; the person can change it. A row's `values` still win. Null when nothing is chosen until the person chooses.","example":"create","nullable":true,"oneOf":[{"type":"string"},{"type":"number"}]},"enum":{"description":"The values it takes, when it takes one of a fixed list.","items":{"$ref":"#/components/schemas/WorkflowPromptEnumValue"},"nullable":true,"type":"array"},"kind":{"description":"For a `record` column whose list is the same for every row (`account`); null when it depends on the row: each row's `kinds` says it.","example":"account","nullable":true,"type":"string"},"label":{"example":"Income account","type":"string"},"name":{"description":"The key in each row's answer.","example":"income_account","type":"string"},"required":{"description":"Whether a row it applies to is refused (`422 missing_fields`, named `<field>.<row key>.<column>`) without it.","type":"boolean"},"type":{"description":"As a field's; a `record` column is filled from the run's search with `field=<field>.<column>&row=<row key>`.","enum":["string","number","boolean","record"],"type":"string"},"when":{"additionalProperties":{"items":{},"type":"array"},"description":"The values of the row's other columns this one applies under: `{\"action\": [\"create\"], \"item_type\": [\"item_inventory\"]}` asks it only of a row being created as an inventory item. Read them over the row's `values` and what the person has chosen so far, and show or hide the column as they change. An answer to a column that doesn't apply is dropped.","example":{"action":["create"]},"nullable":true,"type":"object"}},"required":["name","type","label","required","kind","enum","default","when"],"type":"object"},"updateClass_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"The case-insensitive name of the class, not including the names of its ancestors.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"ClassRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createPayrollYearToDateAdjustment_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"amount":{"type":"number"},"class_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"edit_sequence":{"type":"string"},"employee_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_affecting_accounts":{"type":"boolean"},"memo":{"type":"string"},"pay_period_begin_date":{"format":"date","type":"string"},"pay_period_end_date":{"format":"date","type":"string"},"payroll_date":{"format":"date","type":"string"},"payroll_year_to_date_adjustment_line_ret":{"items":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"amount":{"type":"number"},"calculated_amount":{"type":"number"},"class_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"company_paid_attribute":{"enum":["IsExpense","IsLiability","IsLiabilityAndExpense","NotApplicable"],"type":"string"},"experience_mod_rate_amount":{"type":"number"},"hours_worked":{"type":"string"},"income_subject_to_tax_amount":{"type":"number"},"is_amount_overridden":{"type":"boolean"},"memo":{"type":"string"},"other_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"txn_line_id":{"type":"string"},"wage_base_amount":{"type":"number"},"workers_comp_amount":{"type":"number"},"workers_comp_code_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"ref_number":{"type":"string"},"tax_table_version":{"type":"integer"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"txn_date":{"format":"date","type":"string"},"txn_id":{"type":"string"},"txn_number":{"type":"integer"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createDateDrivenTerms_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"day_of_month_due":{"description":"The day of the month when full payment is due with no discount.","maximum":31,"minimum":1,"type":"integer"},"discount_day_of_month":{"description":"If the payment is made by this day of the month, then `discount_pct` applies.","maximum":31,"minimum":1,"type":"integer"},"discount_pct":{"description":"If payment is received by `discount_day_of_month`, then this discount will apply to the payment. `discount_pct` must be between 0 and 100.","type":"number"},"due_next_month_days":{"description":"Handles cases when an invoice or bill is issued close to its due date. If the invoice or bill is issued within this many days of the due date, payment isn’t due until the following month. For example, with a `day_of_month_due` of 15 and a `due_next_month_days` of 2, an invoice issued on May 13th wouldn’t be due until June 15th.","type":"integer"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"DateDrivenTermsRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3040,3070,3100,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_amount","string_too_long","name_in_use","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createWorkersCompCode_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"current_effective_date":{"description":"Indicates the date at which the workers’ compensation code went into effect. This field contains a value only if the code is currently in effect. If the code has only a future date, then this field is empty.","format":"date","type":"string"},"current_rate":{"description":"Indicates the workers’ comp insurance premium rate that is currently in effect for the current comp code. If the code doesn’t have a current effective date–that is, it has a future date only, then this field is empty.","type":"number"},"desc":{"description":"A descriptive text field.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"next_effective_date":{"description":"You can create a workers’ comp code with several rates and effective dates, both in the past, present, and future (only one in the future). Each of these dates has a rate associated with it, the idea being you can set up the comp code to support anticipated increases (or decreases) in the rate.","format":"date","type":"string"},"next_rate":{"description":"You can create a workers’ comp code with several rates and effective dates, both in the past, present, and future (only one in the future). Each of these dates has a rate associated with it, the idea being you can set up the comp code to support anticipated increases (or decreases) in the rate.","type":"number"},"rate_history":{"items":{"properties":{"effective_date":{"description":"Specifies the date at which the workers’ comp code and it’s related premium goes into effect.","format":"date","type":"string"},"rate":{"description":"Indicates the price of something.","type":"number"}},"type":"object"},"type":"array"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"WorkersCompCodeRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3040,3070,3100,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_amount","string_too_long","name_in_use","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowRunWebhookPayload":{"description":"The body QuBeSync POSTs to a run's `webhook_url`, signed with `X-QUBE-Signature` like every other QuBeSync webhook. One flat envelope for every event, always about the run the app started -- a workflow it calls runs as part of it and sends none of its own. `GET links.run` returns the whole run. A webhook can arrive before the response to the call that caused it -- the start, or a decision -- so find your record by `reference` rather than `run_id`. The body is built when it is sent, not when the event happened: `run_state` and `revision` are the run's then, and an `awaiting_input` that arrives after the run moved on carries no `prompt`. Skip a body whose `revision` isn't higher than the highest you have applied -- but never a `workflow_run.notification`, which is data, deduplicated on `delivery_id`. `workflow_run.notification` is data a notify state sends the app mid-run: the run waits for a 2xx before it goes on, so notifications arrive one at a time, in `seq` order, all before the run's ending webhook; a failed delivery is retried for about an hour (10 attempts) with the same `delivery_id`.\n\nMissed the run's latest event (your endpoint was down for longer than the retries, about 8 hours, or your app dropped it)? `POST .../workflow-runs/{run_id}/redeliver` sends it again: the event for the run's state now, with its current `revision`.","properties":{"app_id":{"format":"uuid","type":"string"},"cancel_reason":{"description":"Only on `workflow_run.cancelled`.","nullable":true,"type":"string"},"connection_id":{"format":"uuid","type":"string"},"data":{"description":"Only on `workflow_run.notification`: the notify state's `data`, rendered -- any JSON, at most 4 MB.","nullable":true},"delivery_id":{"description":"Only on `workflow_run.notification`: the notification's id, the same on every retry of it. Deduplicate on it: delivery is at least once.","format":"uuid","type":"string"},"error":{"allOf":[{"$ref":"#/components/schemas/WorkflowRunError"}],"description":"Only on `workflow_run.failed`: what failed it, with QuickBooks' code and words when QuickBooks refused something."},"event":{"enum":["workflow_run.awaiting_input","workflow_run.notification","workflow_run.completed","workflow_run.failed","workflow_run.cancelled"],"type":"string"},"from":{"description":"Only on `workflow_run.notification`: null when the run's own workflow sent it; when a workflow it calls did, which -- `workflow`, its own `state`, and `item_index`/`item_count` inside a state that runs once per item -- as `prompt.from` says. Never a run id: `run_id` is always the run the app started.","nullable":true,"properties":{"item_count":{"type":"integer"},"item_index":{"type":"integer"},"state":{"type":"string"},"workflow":{"type":"string"}},"type":"object"},"headline":{"description":"What happened, in one plain sentence for a person: a log line, a notification, a status on your page. Every event has one: an ending says how it ended (the workflow's own sentence for each outcome, `Created Riverbend Electric in QuickBooks.`), a question is its `prompt.message`. Never parse it -- branch on `event`, `outcome`, `output` and `error`, which say the same thing as data.","example":"Created Riverbend Electric in QuickBooks.","type":"string"},"links":{"description":"Only the links that work for the run as it is: `run` (the whole run) and `ui` (it in QuBeSync) always; `cancel` until the run ends; `decisions`, where to answer, and `search`, which finds the record a question's `record` field means, only on `workflow_run.awaiting_input` (and `search` only when the question has such a field).","properties":{"cancel":{"description":"Until the run ends: where to cancel it.","format":"uri","type":"string"},"decisions":{"description":"Only on `workflow_run.awaiting_input`: where to answer. It carries the current prompt's `token` as `?prompt_token=`, so an answer POSTed to it can only answer that question: once the run has asked again it is refused with `409 prompt_changed`.","format":"uri","type":"string"},"run":{"format":"uri","type":"string"},"search":{"description":"Where a `record` field of the question is searched: set only while the run is `awaiting_input` with a choice that has one, which only a realtime or simulated connection (with a name index) offers; absent otherwise. It carries the prompt's `token` as `?prompt_token=`, like `decisions`; add `field` and `q`.","format":"uri","nullable":false,"type":"string"},"ui":{"format":"uri","type":"string"}},"required":["run","ui"],"type":"object"},"name":{"description":"Only on `workflow_run.notification`: the notify state's `name`, what the app routes on, such as `customers_page`.","type":"string"},"outcome":{"description":"Only on the endings: on `workflow_run.completed`, `completed` or the outcome the workflow declared; on `workflow_run.failed`, `failed` or its failure outcome; null on `workflow_run.cancelled`.","nullable":true,"type":"string"},"output":{"description":"On `workflow_run.completed`: what the workflow produced, with only the keys that ending sets (none is null; a workflow declares the output of each outcome). On `workflow_run.failed`, only when the failure outcome declares an output. Not on the other events.","type":"object"},"prompt":{"description":"Only on `workflow_run.awaiting_input`: the question, as `prompt` on the run, without the chart's `options` (what `choices` were rendered from) -- `id`, `token`, `kind`, `message`, `data`, `details`, `choices`, and `from` (`workflow`, `state`) when a workflow this one calls asked. `kind` is `decision` for a wait state's own question and `conflict` when the engine asks about an update whose record someone changed after the run read it (a stale edit sequence, 3200): then `state` names the request state, `data` carries `operation`, `sent`, `current`, `as_read` (null when the run never read the record), `conflicts` and `theirs`, and the options are always `overwrite` (optionally with `data.params`, the fields to send instead) and `keep`. See `prompt` on WorkflowRun.","properties":{"choices":{"description":"Everything the person can pick, in order, at most 26: render one button (and its fields) per choice, and POST the picked one's `id` as `choice`. Built when the run asks, from `options`: a plain option is one choice with its id; an option whose field picks from a list is one choice per item (`use:1`, `use:2`, ..., at most 25), its value filled in by QuBe Sync; a field searched from the name index adds a search choice (`links.search`). Show these rather than `options`: every question is rendered and answered the same way.","items":{"$ref":"#/components/schemas/WorkflowPromptChoice"},"maxItems":26,"type":"array"},"details":{"description":"What the question is about, as label and value rows to show under `message`, at most 20: the name and kind, a transaction's number, the operation; for a conflict, one row per field that differs (`yours … · theirs …`). Built when the run asks.","items":{"$ref":"#/components/schemas/WorkflowPromptDetail"},"maxItems":20,"type":"array"},"kind":{"description":"decision: a wait state's own question. conflict: the engine asks about an update that met a stale edit sequence; see the prompt's description.","enum":["decision","conflict"],"type":"string"},"token":{"description":"This asking of the question, as `prompt.token` on the run: send it as the decision's `prompt_token`.","type":"string"}},"type":"object"},"reference":{"description":"Your own label for the run, as you sent it when you started it; null if you sent none. Match the webhook to your record by it: it can arrive before the start's response gives you `run_id`.","nullable":true,"type":"string"},"revision":{"description":"The run's `revision` when this body was built: the same counter the run carries, so a webhook, the start and decision responses and a `GET` can be put in order. On `workflow_run.notification` it says where the run was, but deduplicate notifications on `delivery_id`, never skip one by revision.","minimum":1,"type":"integer"},"run_id":{"format":"uuid","type":"string"},"run_state":{"description":"The run's `state` when this body was built -- `state` on the run. What `event` says: a body is built when it is sent, and a `workflow_run.awaiting_input` still being retried once the question is answered, or the run has ended, is not sent. (`state` on a notification is the notify state's path.)","enum":["running","awaiting_input","completed","failed","cancelled"],"type":"string"},"sandbox":{"type":"boolean"},"seq":{"description":"Only on `workflow_run.notification`: 1, 2, 3... for the run, in the order its notifications were sent, the workflows it calls included.","type":"integer"},"state":{"description":"Only on `workflow_run.notification`: the notify state's path from the run, on into a workflow it calls (`sync_page / send_customer`), as a question's `id` is.","type":"string"},"summary":{"allOf":[{"$ref":"#/components/schemas/WorkflowRunWebhookSummary"}],"description":"Only on the endings: what the run changed in QuickBooks (`changes`) and the decisions it was given, with `stopped_at` on `workflow_run.failed` and `workflow_run.cancelled`. Without the per-request lists (`requests`, `calls`, `matches`, `discarded`) and the states that made each change (`side_effects`), which `GET links.run` returns in the run's whole `summary`."},"timestamp":{"description":"Unix seconds; also the `t=` in the signature header.","type":"integer"},"workflow":{"description":"The workflow's key -- still set after that workflow has been deleted.","type":"string"},"workflow_id":{"description":"The workflow's id. Null once that workflow has been deleted -- its runs are kept, run to the end on the version they started with, and still name it in `workflow` -- and for a built-in chart, which has no workflow row.","format":"uuid","nullable":true,"type":"string"}},"required":["event","timestamp","app_id","sandbox","connection_id","workflow","workflow_id","run_id","reference","revision","run_state","headline","links"],"type":"object"},"listInvoices_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"discount_line_ret":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"is_taxable":{"type":"boolean"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"invoice_line_ret":{"description":"Represents one line in the invoice. Compare with InvoiceLineGroup, which represents a previously defined group of lines in the invoice.\n\n`invoice_line_ret` and `invoice_line_group_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"sales_tax_percentage":{"description":"The percentage charged for sales tax.","type":"number"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"is_paid":{"description":"If `is_paid` is true, this transaction has been paid.","type":"boolean"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"is_pending":{"description":"If `is_pending` is set to true, the invoice hasn’t been completed. Pending sales might include unpaid orders, estimates, tracked hours that haven’t yet been billed, or sales of back-ordered items.","type":"boolean"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the invoice. If you leave `txn_date` out of an InvoiceAdd message, QuickBooks might prefill it with the date of the invoice that was most recently saved.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"applied_amount":{"description":"The credits and payments applied to this invoice, as a negative number: -80.00 for an invoice paid 80.00 (observed on QuickBooks Enterprise 24.0).","type":"number"},"is_finance_charge":{"description":"If `is_finance_charge` is true, a finance-charge item has been added to the invoice.","type":"boolean"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"suggested_discount_amount":{"description":"The suggested discount for this invoice.","type":"number"},"bill_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"If `due_date` isn’t included in an InvoiceAdd request, QuickBooks might determine the due date according to the terms set for this customer.","format":"date","type":"string"},"subtotal":{"description":"The total of all the invoice lines, before taxes and `applied_amount` are applied. (By contrast, a subtotal item (an ItemSubtotal object) gives only the total of the amounts in the lines that appear above it.)","type":"number"},"sales_tax_total":{"description":"The total amount of sales tax charged.","type":"number"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_line_ret":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"po_number":{"description":"Purchase order number.","type":"string"},"shipping_line_ret":{"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"}},"type":"object"},"invoice_line_group_ret":{"description":"Represents a previously defined group of lines in the invoice. Compare with InvoiceLine, which represents just one line in the invoice.\n\n`invoice_line_ret` and `invoice_line_group_ret` combine: any number of each.","items":{"properties":{"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"invoice_line_ret":{"description":"Represents one line in the invoice. Compare with InvoiceLineGroup, which represents a previously defined group of lines in the invoice.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Message that appears in reports, but not on the invoice.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the invoice. If you leave `txn_date` out of an InvoiceAdd message, QuickBooks might prefill it with the date of the invoice that was most recently saved.","format":"date","type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"balance_remaining":{"description":"The outstanding balance on this transaction. For an invoice, that’s (Subtotal + `sales_tax_total`) + the invoice’s `applied_amount`, which comes back negative (observed on QuickBooks Enterprise 24.0).","type":"number"},"suggested_discount_date":{"description":"The date when `suggested_discount_amount` would apply.","format":"date","type":"string"},"balance_remaining_in_home_currency":{"description":"Balance remaining in units of the home currency.","type":"number"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowChartWorkflowKey":{"pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"},"listTransferInventories_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"from_inventory_site_ref":{"description":"Inventory site that transfer will be taken from.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"to_inventory_site_ref":{"description":"Inventory site that transfer will be sent to.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"transfer_inventory_line_ret":{"items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"from_inventory_site_location_ref":{"description":"Location within the inventory site that transfer will be taken from.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"quantity_transferred":{"description":"Quantity of items transferred.","type":"number"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"to_inventory_site_location_ref":{"description":"Location within the inventory site that transfer will be sent to.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listCustomerTypes_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listDeposits_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"cash_back_info_ret":{"description":"This aggregate is included if there is cash back from this deposit. `account_ref` indicates where the cash back Amount is going (for example, into a petty cash account).","properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"memo":{"description":"Additional information.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"deposit_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"check_number":{"description":"The check number of a check that a QuickBooks user writes or receives from someone else.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In JournalCreditLine and JournalDebitLine messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"payment_txn_line_id":{"description":"For the `payment_txn_line_id`, use a `txn_line_id` value exactly as it has been returned by the ReceivePaymentToDepositQuery request. If you don’t include a `payment_txn_line_id` and include a PaymentTxnID for a transaction that includes payment lines, only the first payment line from that transaction will be deposited.","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"deposit_total":{"description":"The sum of all the deposited amounts.","type":"number"},"deposit_total_in_home_currency":{"description":"Amount of the deposit in units of the home currency.","type":"number"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"memo":{"description":"Additional information.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listItemInventoryAssemblies_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"average_cost":{"description":"`average_cost` is the total value of this item divided by `quantity_on_hand`. Initially the total value is the same as the `quantity_on_hand` times the `purchase_cost` (so `average_cost` equals `purchase_cost`). However, the total value can be changed by an inventory adjustment so that it no longer matches `quantity_on_hand` times `purchase_cost`.","type":"number"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"quantity_on_sales_order":{"description":"The number of these items that have been sold (as recorded in sales orders) but not delivered to customers.","type":"number"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"item_inventory_assembly_line":{"items":{"properties":{"item_inventory_ref":{"description":"An inventory item is any merchandise or part that a business purchases, tracks as inventory, and then resells. In QuickBooks, information about an inventory item is grouped into three categories:Puchase Information includes `purchase_desc`, `purchase_cost`, `cogs_account_ref`, and `pref_vendor_ref`. Sales Information includes `sales_desc`, `sales_price`, and `sales_tax_code_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"}},"type":"object"},"type":"array"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_price":{"description":"Price charged for this item.","type":"number"},"quantity_on_order":{"description":"The number of these items that have been ordered from vendors (as recorded in purchase orders) but not received.","type":"number"},"quantity_on_hand":{"description":"The number of these items in inventory. `quantity_on_hand` times `average_cost` is TotalValue in an inventory item list. To change the `quantity_on_hand` for an item, you would have to use InventoryAdjustmentAdd not an ItemInventoryMod.","type":"number"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"build_point":{"description":"The build notification point. The QuickBooks user will receive a notification when `quantity_on_hand` plus `quantity_on_order` falls below `build_point`.","type":"number"},"max":{"description":"Maximum number of items in inventory.","type":"number"},"asset_account_ref":{"description":"Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"cogs_account_ref":{"description":"Refers to the account that QuickBooks uses to track the original cost of goods that are eventually sold. (The AccountType of this account will be CostOfGoodsSold.) In a request, if a `cogs_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateVendorCredit_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_amount":{"description":"The amount of a credit that is being applied to a vendor bill, reducing the amount that is owed on the bill.","type":"number"},"credit_amount_in_home_currency":{"description":"The amount of the credit, expressed in units of the current home currency.","type":"number"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Appears in the A/P register and in reports that include this credit.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_ret":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions: ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment). ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Appears in the A/P register and in reports that include this credit.","type":"string"},"open_amount":{"description":"Indicates the amount that is still owed. AmountDue minus any credits or discounts equals the `open_amount`.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"VendorCreditRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createItemNonInventory_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"not":{"anyOf":[{"required":["sales_or_purchase","sales_and_purchase"]}]},"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_and_purchase":{"description":"A `sales_and_purchase` aggregate is used for items that are meant to be both purchased and sold, such as an “other charge” item that is reimbursable.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","properties":{"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"sales_or_purchase":{"description":"A `sales_or_purchase` aggregate is used for items that are meant to be either purchased or sold, but not both. For example, a `sales_or_purchase` aggregate would be used for a non-inventory item that is purchased but not sold, or for a service item that is sold but not purchased.\n\nChoose at most one of: `sales_or_purchase`, or `sales_and_purchase`.","not":{"anyOf":[{"required":["price","price_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"price":{"description":"The purchase price or sales price of this item.\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"},"price_percent":{"description":"The price expressed as a percent. (For example, an auto shop that calculates the cost of labor as a percentage of the cost of parts might have a service item called “Labor” that uses `price_percent` instead of Price.)\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sublevel":{"description":"The number of ancestors. For example, The customer job with Name = carpets and `full_name` = Jones:Building2:carpets would have a sublevel of 2.","type":"integer"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"ItemNonInventoryRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createPurchaseOrder_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"purchase_order_line_group_ret":{"description":"Represents a previously defined group of lines in the purchase order. Compare with PurchaseOrderLine, which represents just one line in the purchase order.\n\n`purchase_order_line_ret` and `purchase_order_line_group_ret` combine: any number of each.","items":{"properties":{"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"Description that appears on the purchase order for this line item.","type":"string"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_order_line_ret":{"description":"One line of the purchase order. Compare with PurchaseOrderLineGroup, which represents a previously defined group of lines in the purchase order.","items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"Description that appears on the purchase order for this line item.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_billed":{"description":"If `is_billed` is true, the tracked time has already been billed.","type":"boolean"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this purchase order has been closed, even if all the items haven’t been received or the sale hasn’t been cancelled. Once the purchase order is marked as closed, all the line items within it become closed as well. You can’t change `is_manually_closed` to false after the purchase order has been fully received.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)","type":"number"},"received_quantity":{"description":"The quantity that has been received against this purchase order.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unbilled_quantity":{"description":"The quantity that hasn’t been billed.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"total_amount":{"description":"The returned `total_amount` will be the total of the amounts in the purchase order lines and group lines.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"vendor_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or BillAddressBlock.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this purchase order has been closed, even if all the items haven’t been received or the sale hasn’t been cancelled. Once the purchase order is marked as closed, all the line items within it become closed as well. You can’t change `is_manually_closed` to false after the purchase order has been fully received.","type":"boolean"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"total_amount_in_home_currency":{"description":"Total amount of money paid or received in the home currency.","type":"number"},"ship_address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"vendor_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"expected_date":{"description":"The date on which shipment is expected.","format":"date","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"linked_txn":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"link_type":{"description":"Indicates the nature of the link between the transactions:ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment).ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders.","enum":["AMTTYPE","QUANTYPE"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"ship_to_entity_ref":{"description":"Refers to a customer, vendor, employee, or person on the “other names” list to whom this order is to be shipped. If a `ship_to_entity_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_order_line_ret":{"description":"One line of the purchase order. Compare with PurchaseOrderLineGroup, which represents a previously defined group of lines in the purchase order.\n\n`purchase_order_line_ret` and `purchase_order_line_group_ret` combine: any number of each.","items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"Description that appears on the purchase order for this line item.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_billed":{"description":"If `is_billed` is true, the tracked time has already been billed.","type":"boolean"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this purchase order has been closed, even if all the items haven’t been received or the sale hasn’t been cancelled. Once the purchase order is marked as closed, all the line items within it become closed as well. You can’t change `is_manually_closed` to false after the purchase order has been fully received.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)","type":"number"},"received_quantity":{"description":"The quantity that has been received against this purchase order.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unbilled_quantity":{"description":"The quantity that hasn’t been billed.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"vendor_msg":{"description":"Message to be printed on a purchase order for the vendor to read.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"memo":{"description":"This can be included in reports, but it doesn’t appear on the printed purchase order.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"is_fully_received":{"description":"If `is_fully_received` is true, all the items in the purchase order have been received and none of them was closed manually.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"total_amount":{"description":"The returned `total_amount` will be the total of the amounts in the purchase order lines and group lines.","type":"number"}},"title":"PurchaseOrderRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listAgingReports_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"col_desc":{"items":{"properties":{"col_id":{"description":"An identifying number that corresponds to the position of this column in the report. The columns are numbered from left to right, starting with 1.","type":"integer"},"col_title":{"items":{"type":"string"},"type":"array"},"col_type":{"description":"The type of data that this column contains. `col_type` values are formatted types. (Returned ctPercent values, for example, will have digits after the decimal points, and ctAddr1 values will be strings.)","enum":["Account","Addr1","Addr2","Addr3","Addr4","Addr5","Aging","Amount","AmountDifference","AverageCost","BilledDate","BillingStatus","Blank","CalculatedAmount","Class","ClearedStatus","CostPrice","CreateDate","Credit","CustomField","Date","Debit","DeliveryDate","DueDate","Duration","EarliestReceiptDate","EstimateActive","FOB","IncomeSubjectToTax","Invoiced","IsAdjustment","Item","ItemDesc","ItemVendor","Label","LastModifiedBy","LatestOrPriorState","Memo","ModifiedTime","Name","NameAccountNumber","NameAddress","NameCity","NameContact","NameEmail","NameFax","NamePhone","NameState","NameZip","OpenBalance","OriginalAmount","PONumber","PaidAmount","PaidStatus","PaidThroughDate","PaymentMethod","PayrollItem","Percent","PercentChange","PercentOfTotalRetail","PercentOfTotalValue","PhysicalCount","PrintStatus","ProgressAmount","ProgressPercent","Quantity","QuantityAvailable","QuantityOnHand","QuantityOnOrder","QuantityOnPendingBuild","QuantityOnSalesOrder","ReceivedQuantity","RefNumber","ReorderPoint","RetailValueOnHand","RunningBalance","SONumber","SSNOrTaxID","SalesPerWeek","SalesRep","SalesTaxCode","ShipDate","ShipMethod","ShipToAddr1","ShipToAddr2","ShipToAddr3","ShipToAddr4","ShipToAddr5","SourceName","SplitAccount","SuggestedReorder","TaxLine","TaxTableVersion","Terms","Total","TxnID","TxnNumber","TxnType","UnitPrice","UserEdit","ValueOnHand","WageBase","WageBaseTips"],"type":"string"},"data_type":{"description":"The data type: IDTYPE, STRTYPE, and so on.","enum":["AMTTYPE","BOOLTYPE","DATETIMETYPE","DATETYPE","ENUMTYPE","GUIDTYPE","IDTYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STRTYPE","TIMEINTERVALTYPE"],"type":"string"}},"type":"object"},"type":"array"},"num_col_title_rows":{"description":"The number of rows to allocate for column titles. Although this number is usually 1, with some reports it is 2 or 3. (For an example of column titles that span multiple rows, look at a ProfitAndLossByJob report in QuickBooks.)","type":"integer"},"num_columns":{"description":"The number of columns in the report.","type":"integer"},"num_rows":{"description":"The number of rows in the report.","type":"integer"},"report_basis":{"description":"If `report_basis` is rbCash, the report bases income and expenses on the dates when money changed hands. rbAccrual, the report bases income on the dates when customers were invoiced and bases expenses on the dates when bills were entered. rbNone, the report uses the default `report_basis`, which is either the QuickBooks Preference setting or the QuickBooks default for a given type of report.","enum":["Accrual","Cash","None"],"type":"string"},"report_data":{"description":"If the report contains any data, it is given row-by-row in a `report_data` aggregate.","properties":{"data_row":{"description":"A data row contains the actual data for each column.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"subtotal_row":{"description":"A row that contains a calculated subtotal of the data in all the rows since the last SubTotalRow and, usually, a single underline. There can be multiple SubTotalRow aggregates in a report.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"text_row":{"description":"A text row contains only text and is used mainly for headings.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"type":"string"},"type":"array"},"total_row":{"description":"A row that contains a calculated total of all the data that has come before and a double underline. There will only be one `total_row` per report. If `total_row` doesn’t include any numerical values, the columns required to show the total values aren’t part of the report. These columns weren’t included when the report was customized.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"}},"type":"object"},"report_subtitle":{"description":"The subtitle for this report.","type":"string"},"report_title":{"description":"The main title for this report.","type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateListDisplay_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3150,3170,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","missing_element","cannot_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createPayrollItemAddition_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"calculated_based_on":{"enum":["HoursAll","HoursWorked","Quantity","Rate"],"type":"string"},"edit_sequence":{"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"is_active":{"type":"boolean"},"is_tracked_by_cust_job":{"type":"boolean"},"limit":{"type":"number"},"limit_time_period":{"enum":["Annual","Forever"],"type":"string"},"list_id":{"type":"string"},"name":{"type":"string"},"net_or_gross":{"enum":["Gross","Net"],"type":"string"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"taxability":{"items":{"properties":{"is_tax_applied":{"type":"boolean"},"payroll_item_tax_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"time_created":{"format":"date-time","type":"string"},"time_modified":{"format":"date-time","type":"string"},"w2_tracking_type_value":{"type":"integer"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listItemSalesTaxGroups_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"item_sales_tax_ref":{"items":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"type":"array"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"WorkflowChartAssignMap":{"additionalProperties":{"$ref":"#/components/schemas/WorkflowChartTemplate"},"description":"Variable name -> template. Every value is rendered against the same context snapshot, then merged into vars at once.","propertyNames":{"$ref":"#/components/schemas/WorkflowChartIdentifier"},"type":"object"},"listCreditCardCredits_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"amount_in_home_currency":{"description":"Amount in units of the home currency.","type":"number"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_ret":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"total_amount":{"description":"Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a `total_amount` and the sum of all the PaymentAmount elements must not be greater than the `total_amount`.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"item_line_ret":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_ret` and `item_group_line_ret` combine: any number of each.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"The total of the amounts in the expense lines, item lines, and item group lines.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"type":"object"},"type":"array"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateSalesTaxPaymentCheck_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"address":{"description":"If an address request fails, some combination of address fields might be too long. In a Check, BillPaymentCheck, or SalesTaxPaymentCheck message, Address is the address that will print on the check.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"address_block":{"description":"The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"bank_account_ref":{"description":"Refers to the account from which the funds are being drawn for this check, for example, Checking or Savings. If a `bank_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"sales_tax_payment_check_line_ret":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"SalesTaxPaymentCheckRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listDataEventRecoveryInfos_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"data_event_recovery_time":{"description":"The time when the callback application starts losing data events. QuickBooks won’t track any `data_event_recovery_time` information for a callback application unless TrackLostEvents was set to All in its subscription.","format":"date-time","type":"string"},"subscriber_id":{"description":"A unique identifier that an application sets when it adds a subscription so that the application can later query or delete the subscription.","type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"listGeneralDetailReports_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"properties":{"col_desc":{"items":{"properties":{"col_id":{"description":"An identifying number that corresponds to the position of this column in the report. The columns are numbered from left to right, starting with 1.","type":"integer"},"col_title":{"items":{"type":"string"},"type":"array"},"col_type":{"description":"The type of data that this column contains. `col_type` values are formatted types. (Returned ctPercent values, for example, will have digits after the decimal points, and ctAddr1 values will be strings.)","enum":["Account","Addr1","Addr2","Addr3","Addr4","Addr5","Aging","Amount","AmountDifference","AverageCost","BilledDate","BillingStatus","Blank","CalculatedAmount","Class","ClearedStatus","CostPrice","CreateDate","Credit","CustomField","Date","Debit","DeliveryDate","DueDate","Duration","EarliestReceiptDate","EstimateActive","FOB","IncomeSubjectToTax","Invoiced","IsAdjustment","Item","ItemDesc","ItemVendor","Label","LastModifiedBy","LatestOrPriorState","Memo","ModifiedTime","Name","NameAccountNumber","NameAddress","NameCity","NameContact","NameEmail","NameFax","NamePhone","NameState","NameZip","OpenBalance","OriginalAmount","PONumber","PaidAmount","PaidStatus","PaidThroughDate","PaymentMethod","PayrollItem","Percent","PercentChange","PercentOfTotalRetail","PercentOfTotalValue","PhysicalCount","PrintStatus","ProgressAmount","ProgressPercent","Quantity","QuantityAvailable","QuantityOnHand","QuantityOnOrder","QuantityOnPendingBuild","QuantityOnSalesOrder","ReceivedQuantity","RefNumber","ReorderPoint","RetailValueOnHand","RunningBalance","SONumber","SSNOrTaxID","SalesPerWeek","SalesRep","SalesTaxCode","ShipDate","ShipMethod","ShipToAddr1","ShipToAddr2","ShipToAddr3","ShipToAddr4","ShipToAddr5","SourceName","SplitAccount","SuggestedReorder","TaxLine","TaxTableVersion","Terms","Total","TxnID","TxnNumber","TxnType","UnitPrice","UserEdit","ValueOnHand","WageBase","WageBaseTips"],"type":"string"},"data_type":{"description":"The data type: IDTYPE, STRTYPE, and so on.","enum":["AMTTYPE","BOOLTYPE","DATETIMETYPE","DATETYPE","ENUMTYPE","GUIDTYPE","IDTYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STRTYPE","TIMEINTERVALTYPE"],"type":"string"}},"type":"object"},"type":"array"},"num_col_title_rows":{"description":"The number of rows to allocate for column titles. Although this number is usually 1, with some reports it is 2 or 3. (For an example of column titles that span multiple rows, look at a ProfitAndLossByJob report in QuickBooks.)","type":"integer"},"num_columns":{"description":"The number of columns in the report.","type":"integer"},"num_rows":{"description":"The number of rows in the report.","type":"integer"},"report_basis":{"description":"If `report_basis` is rbCash, the report bases income and expenses on the dates when money changed hands.rbAccrual, the report bases income on the dates when customers were invoiced and bases expenses on the dates when bills were entered.rbNone, the report uses the default `report_basis`, which is either the QuickBooks Preference setting or the QuickBooks default for a given type of report.","enum":["Accrual","Cash","None"],"type":"string"},"report_data":{"description":"If the report contains any data, it is given row-by-row in a `report_data` aggregate.","properties":{"data_row":{"description":"A data row contains the actual data for each column.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"subtotal_row":{"description":"A row that contains a calculated subtotal of the data in all the rows since the last SubTotalRow and, usually, a single underline. There can be multiple SubTotalRow aggregates in a report.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"},"text_row":{"description":"A text row contains only text and is used mainly for headings.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"type":"string"},"type":"array"},"total_row":{"description":"A row that contains a calculated total of all the data that has come before and a double underline. There will only be one `total_row` per report. If `total_row` doesn’t include any numerical values, the columns required to show the total values aren’t part of the report. These columns weren’t included when the report was customized.\n\n`data_row`, `text_row`, `subtotal_row` and `total_row` combine: any number of each.","items":{"properties":{"col_data":{"items":{"type":"string"},"type":"array"},"row_data":{"description":"`row_data` describes one row in the report.","type":"string"},"row_number":{"description":"The row number. Rows are numbered from top to bottom, starting with 1.","type":"integer"}},"type":"object"},"type":"array"}},"type":"object"},"report_subtitle":{"description":"The subtitle for this report.","type":"string"},"report_title":{"description":"The main title for this report.","type":"string"}},"type":"object"},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `no_match` (1): The query ran and matched nothing.\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `not_found_by_key` (500): A record was looked up by an exact key (a FullName or ListID) and does not exist.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[500],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3150,3210,3220,3231,3250,3260,3261,3262,3264],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","missing_element","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createItemSalesTaxGroup_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"item_sales_tax_ref":{"items":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"type":"array"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"}},"title":"ItemSalesTaxGroupRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3100,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `name_in_use` (3100): The name is already used by a customer, vendor, employee or other name.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","name_in_use","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"updateDeposit_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"cash_back_info_ret":{"description":"This aggregate is included if there is cash back from this deposit. `account_ref` indicates where the cash back Amount is going (for example, into a petty cash account).","properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"memo":{"description":"Additional information.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext_ret":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"type":"object"},"type":"array"},"deposit_line_ret":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"check_number":{"description":"The check number of a check that a QuickBooks user writes or receives from someone else.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In JournalCreditLine and JournalDebitLine messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"payment_txn_line_id":{"description":"For the `payment_txn_line_id`, use a `txn_line_id` value exactly as it has been returned by the ReceivePaymentToDepositQuery request. If you don’t include a `payment_txn_line_id` and include a `payment_txn_id` for a transaction that includes payment lines, only the first payment line from that transaction will be deposited.","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"txn_type":{"description":"The type of transaction.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"}},"type":"object"},"type":"array"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"deposit_total":{"description":"The sum of all the deposited amounts.","type":"number"},"deposit_total_in_home_currency":{"description":"Amount of the deposit in units of the home currency.","type":"number"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"memo":{"description":"Additional information.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"DepositRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3170,3171,3175,3176,3200,3210,3220,3231,3250,3260,3261,3262,3263,3264],"type":["integer","null"]},"current":{"description":"The record as it stands in QuickBooks, shaped as a success's `data`, when QuickBooks sent it with the refusal, as it does with `stale_edit_sequence` (3200). Nothing was changed, and `current.edit_sequence` is the record's current one: re-apply your change and send it again with that `edit_sequence`. Absent when QuickBooks sent no record; then query the record first.","type":"object"},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `cannot_modify` (3170): QuickBooks refused to save the change to an existing record.\n* `closing_date_modify` (3171): The transaction is dated on or before the company's closing date, which is password-protected.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `stale_edit_sequence` (3200): The edit_sequence sent is not the record's current one: it changed in QuickBooks after you read it.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","cannot_modify","closing_date_modify","in_use","locked","stale_edit_sequence","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]},"createTransferInventory_response_json":{"description":"QuBe Sync's summary of QuickBooks' answer. Only an `Error` severity from QuickBooks is `status: \"error\"` (and makes the request's `state` `error`), so a query that matched nothing is still `success`. A `Warn` severity is a `success` with `warning` beside it.","oneOf":[{"properties":{"data":{"oneOf":[{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"from_inventory_site_ref":{"description":"Inventory site that transfer will be taken from.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"time_created":{"description":"Time the object was created.","format":"date-time","type":"string"},"time_modified":{"description":"Time the object was last modified.","format":"date-time","type":"string"},"to_inventory_site_ref":{"description":"Inventory site that transfer will be sent to.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"transfer_inventory_line_ret":{"items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"from_inventory_site_location_ref":{"description":"Location within the inventory site that transfer will be taken from.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"quantity_transferred":{"description":"Quantity of items transferred.","type":"number"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"to_inventory_site_location_ref":{"description":"Location within the inventory site that transfer will be sent to.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"TransferInventoryRet","type":"object"},{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and DataExtName.","type":"string"}},"required":["owner_id"],"title":"OwnerID","type":"object"},{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"title":"TxnID","type":"object"}],"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"txn_number":{"description":"An identifying number for this transaction.","type":"integer"}},"title":"ErrorRecovery","type":"object"}]},"message":{"description":"QuickBooks' own status message, carried through when there is no data to show for an otherwise successful request (a query that matched nothing, say).\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","type":"string"},"status":{"const":"success"},"warning":{"description":"Present only when QuickBooks answered with a `Warn` severity: it carried the request out, and `data` is what it saved or found, but it has something to say about it. For example code `530` with the message `The field \"Memo\" is not supported by this implementation.` means the record was saved without that field, so an add or update that comes back with a `warning` may not have saved everything it sent. Absent on a plain success and on an error.","properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.\n\n* `field_not_supported` (530): QuickBooks saved the record but ignored a field it does not support; the message names the field.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-yes-with-a-warning).","examples":[530],"type":"integer"},"message":{"description":"QuickBooks' own statusMessage, such as which field it did not support.","type":"string"}},"required":["code"],"type":"object"}},"required":["status"],"title":"Success","type":"object"},{"properties":{"error":{"properties":{"code":{"description":"QuickBooks' own statusCode. The stable thing to branch on.","examples":[1030,3000,3040,3070,3120,3140,3150,3175,3176,3180,3210,3220,3231,3250,3260,3261,3262,3263,3264,3270],"type":["integer","null"]},"message":{"description":"QuickBooks' own statusMessage.","type":"string"},"type":{"description":"A stable name for `code`, when QuBeSync recognises it. Absent otherwise: coverage widens over time, so treat this as a hint and branch on `code` if you need certainty.\n\n* `unsupported_request` (1030): The QuickBooks this connection talks to does not support this request.\n* `invalid_object_id` (3000): A ListID or TxnID in the request is not a valid id at all; the message names the field.\n* `invalid_amount` (3040): QuickBooks couldn't read an amount: it was written without its two decimals, such as 40 for 40.00, which the qbXML schema allows and QuickBooks doesn't. The message names the value and the field.\n* `string_too_long` (3070): A text value is longer than QuickBooks allows for that field; the message names the field.\n* `object_not_found` (3120): The request named a record by its ListID or TxnID, and the company file has no such record.\n* `invalid_reference` (3140): A reference names a record the company file does not have; the message says which list (Account, Item, Customer...).\n* `missing_element` (3150): QuickBooks requires an element the request left out; the message names it.\n* `in_use` (3175): The record is in use, so it cannot be added, changed or deleted right now.\n* `locked` (3176): Someone has the record open in QuickBooks, or QuickBooks is in a single-user mode (such as the Adjust Quantity/Value on Hand window) that blocks changes.\n* `cannot_save` (3180): QuickBooks refused to save the new record; the text after 'QuickBooks error message:' says why.\n* `invalid_value` (3210): A field's value is not one QuickBooks accepts; the message names the field and the value.\n* `not_authorized` (3220): QuickBooks refused the request: no permission for it, or the feature is turned off in this company file.\n* `request_not_processed` (3231): QuickBooks didn't run this request: an earlier request in the batch failed under stopOnError, or, for a request sent alone, the company file doesn't allow it.\n* `feature_not_enabled` (3250): The feature is turned off in this company file, or this edition of QuickBooks does not have it.\n* `insufficient_permission` (3260): The permission level QuickBooks granted does not allow this action.\n* `personal_data_access_denied` (3261): The application isn't allowed to read or write personal data in this company file.\n* `payroll_subscription_required` (3262): The request needs the company file to be subscribed to Intuit's payroll service.\n* `read_only_access` (3263): The application has read-only access to this company file, so it cannot add or change records.\n* `merchant_services_subscription_required` (3264): The request needs the company file to be subscribed to QuickBooks Merchant Account Services.\n* `missing_posting_account` (3270): QuickBooks needs an account to post this to, and none was given or defaulted.\n\nWhat each means and how to handle it: [Error handling](https://docs.qubesync.com/error_handling#quickbooks-said-no).","enum":["unsupported_request","invalid_object_id","invalid_amount","string_too_long","object_not_found","invalid_reference","missing_element","in_use","locked","cannot_save","invalid_value","not_authorized","request_not_processed","feature_not_enabled","insufficient_permission","personal_data_access_denied","payroll_subscription_required","read_only_access","merchant_services_subscription_required","missing_posting_account"],"type":"string"}},"type":"object"},"status":{"const":"error"}},"required":["status","error"],"title":"Error","type":"object"}]}},"securitySchemes":{"apiKey":{"description":"Use your app's API key as the username, and leave the password blank","scheme":"basic","type":"http"}}},"info":{"contact":{"email":"support@qubesync.com"},"description":"A single generic operation surface for every curated qbXML request QuBe Sync supports, driven directly off the qbXML schema -- see the [MCP server](/mcp-server) to explore available operations interactively.\n\n**Every endpoint queues a request and returns it immediately (`201`, a `QueuedRequest`).** QuickBooks Desktop is reached through the customer's Web Connector, which polls QuBe Sync, so the answer arrives seconds to minutes later. **Pass a `webhook_url` with every request**: when QuickBooks has answered, QuBe Sync POSTs the same document to it -- `state` set, `response_json` filled in -- signed with `X-QUBE-Signature` (see the Webhooks guide). `response_json` is the `{status, data}` envelope documented on each operation: `status: \"success\"` with `data` derived from the qbXML `*Ret` (and `warning`, QuickBooks' code and message, when it carried the request out but warned about it), or `status: \"error\"` with QuickBooks' own status code and message -- a QuickBooks business error is a *successful* HTTP round trip. `links.self` returns the request on demand (for a dashboard, a retry, a script); it is not the integration path. Send an `Idempotency-Key` header with each request so a call whose answer you never got can be sent again without queueing it twice.\n\nAuthentication is HTTP Basic with your app's API key as the username and a blank password. Connections themselves (creating one, onboarding, its QWC file and password) are the `/connections` endpoints; every QuickBooks operation is scoped to one of them.\n","title":"QuBe Sync API (v2)","version":"2.0.0"},"openapi":"3.1.0","paths":{"/connections/{connection_id}/vehicle-mileages":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listVehicleMileages_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `VehicleMileageQueryRq`, from qbXML 6.0.\n\nVehicleQuery is a transaction query that returns vehicle mileage transaction data for all vehicle mileage transactions that match the provided filter criteria. You can query by transaction ID, or by transaction date, or by date modified.\n\n**Note:** If you use VehicleMileageQuery for app integration with Track Vehicle Mileage in QuickBooks Desktop, ask the customer to open Track Vehicle Mileage for the correct IRS rates. This change is applicable for QuickBooks Desktop 2023 and above.\n\nIntuit's reference: [VehicleMileageQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/vehiclemileagequery).","operationId":"listVehicleMileages","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["BillableAmount","BillableRate","BillableStatus","ClassRef","CustomerRef","EditSequence","ItemRef","Notes","OdometerEnd","OdometerStart","StandardMileageRate","StandardMileageTotalAmount","TimeCreated","TimeModified","TotalMiles","TripEndDate","TripStartDate","TxnID","VehicleRef"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or the set (`max_returned`, `modified_date_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or the set (`max_returned`, `modified_date_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or the set (`max_returned`, `modified_date_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or the set (`max_returned`, `modified_date_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listVehicleMileages_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List vehicle mileages","tags":["Vehicle Mileages"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createVehicleMileage_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `VehicleMileageAddRq`, from qbXML 6.0. The `vehicle_mileage_add` wrapper from qbXML is also accepted.\n\nAdds a VehicleMileage transaction involving the specified vehicle for the specified total miles or optionally for the QuickBooks calculated total miles if you supply the odometer start and end.\n\nNotice that only dates are supported for vehicle mileage, so make sure you enter any datetime values with dates only, no time values. That is, 2002-02-02 will work for trip end date or start date, but 2002-02-02T12:20:20 won’t work.\n\nThe mileage contained in this transaction is multiplied by the standard mileage rate allowed by the tax authority and entered by the QuickBooks user in the Enter Vehicle Mileage form. If you’re curious to see what this rate currently is, and the allowable tax expense resulting from this transaction, those are contained in the `standard_mileage_rate` and `standard_mileage_total_amount` fields in the response to this request. The Mileage By Vehicle detail and summary reports track this vehicle expense.\n\nThe customer, item, class reference fields are mainly used if a customer is to be charged for mileage, in which case the `billable_status` is set to Billable. In this usage, customer and item references are required, class is optional. The mileage transaction will consequently appear as an outstanding billable time and cost charge for the customer when you create an invoice for that customer. (If class tracking is turned on in QuickBooks, and you supply a class in this transaction, the class will automatically appear in the invoice.) This aspect of the mileage transaction is tracked in the Mileage By Job detail and summary reports.\n\nImportant: currently, only the QuickBooks user can put these outstanding charges in the invoice. The SDK doesn’t support this.\n\nIf you specify HasBeenBilled in the `billable_status` field, the transaction shows up as Billed in the Mileage By Job reports, but not on the list of outstanding billable customer time and cost charges when an invoice is created.\n\nIntuit's reference: [VehicleMileageAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/vehiclemileageadd).","operationId":"createVehicleMileage","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"customer_ref":{"full_name":"Acme Corp"},"item_ref":{"full_name":"Mileage"},"odometer_end":12045,"odometer_start":12000,"vehicle_ref":{"full_name":"Delivery Van"}},"schema":{"oneOf":[{"not":{"properties":{"odometer_end":false,"odometer_start":false}},"properties":{"odometer_end":{"description":"Odometer reading at the end of the trip. `odometer_start` and `odometer_end` must both be specified if `total_miles` isn’t specified. QuickBooks will calculate the total trip miles from these two values. If `total_miles` is specified, you can’t specify `odometer_start` and `odometer_end`.","type":"number"},"odometer_start":{"description":"Odometer reading at the start of the trip. `odometer_start` and `odometer_end` must both be specified if `total_miles` isn’t specified. QuickBooks will calculate the total trip miles from these two values. If `total_miles` is specified, you can’t specify `odometer_start` and `odometer_end`.","type":"number"}},"title":"OdometerStart + OdometerEnd","type":"object"},{"properties":{"total_miles":{"description":"Total trip miles. If `total_miles` is specified, you can’t specify `odometer_start` and `odometer_end`. If you use `odometer_start` and `odometer_end` instead of `total_miles`, QuickBooks will calculate the total trip miles from these two values.","type":"number"}},"required":["total_miles"],"title":"TotalMiles","type":"object"}],"properties":{"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or TxnLineID so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"include_ret_element":{"items":{"enum":["BillableAmount","BillableRate","BillableStatus","ClassRef","CustomerRef","EditSequence","ExternalGUID","ItemRef","ListID","Notes","OdometerEnd","OdometerStart","OwnerID","StandardMileageRate","StandardMileageTotalAmount","TimeCreated","TimeModified","TotalMiles","TripEndDate","TripStartDate","TxnID","TxnNumber","VehicleRef"],"type":"string"},"type":"array"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"notes":{"description":"Additional information.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"trip_end_date":{"description":"Date the trip ended. If left blank, the current date at the time of transaction will be used. Notice that only dates are supported for vehicle mileage, so make sure you enter any datetime values with dates only, no time values. That is, 2002-02-02 will work for trip end date or start date, but 2002-02-02T12:20:20 won’t work.","format":"date","type":"string"},"trip_start_date":{"description":"Date the trip began. If left blank, the current date at the time of transaction will be used. Notice that only dates are supported for vehicle mileage, so make sure you enter any datetime values with dates only, no time values. That is, 2002-02-02 will work for trip end date or start date, but 2002-02-02T12:20:20 won’t work.","format":"date","type":"string"},"vehicle_ref":{"description":"A vehicle for use in VehicleMileage transactions. Each vehicle name must be unique.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["vehicle_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createVehicleMileage_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create vehicle mileage","tags":["Vehicle Mileages"]}},"/workflows/{key}/usage":{"get":{"description":"Everything needed to call this workflow: how to start it, every question it may ask (including from workflows it calls), and every way it can end. Derived from the chart on every request, so it always describes the workflow that actually runs.","parameters":[{"description":"The workflow's stable key","in":"path","name":"key","required":true,"schema":{"pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"}},{"description":"Which chart to describe: a version number, `published` (the default), or `working` for the working copy.","in":"query","name":"version","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WorkflowUsage"}},"type":"object"}}},"description":"The usage contract"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No workflow with that key"}},"security":[{"apiKey":[]}],"summary":"How to use a workflow","tags":["Workflows"]}},"/connections/{connection_id}/general-summary-reports":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listGeneralSummaryReports_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `GeneralSummaryReportQueryRq`, from qbXML 2.0.\n\nThe General Summary Reports category is the largest category for summary reports. In addition to common customizations, the reports within this category can be customized by the number of columns that are returned and by period comparisons for the data in the report.\n\nIntuit's reference: [GeneralSummaryReportQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/generalsummaryreportquery).","operationId":"listGeneralSummaryReports","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Set `display_report` to true to display this report within the QuickBooks UI. (Default is false.) If you want the request to display the report without returning any data to your application, set the responseData attribute to includeNone.","in":"query","name":"display_report","required":false,"schema":{"type":"boolean"}},{"description":"The type of general summary report being queried. The report types listed below map almost directly to named reports in QuickBooks.","in":"query","name":"general_summary_report_type","required":true,"schema":{"enum":["BalanceSheetByClass","BalanceSheetPrevYearComp","BalanceSheetStandard","BalanceSheetSummary","CustomerBalanceSummary","ExpenseByVendorSummary","IncomeByCustomerSummary","IncomeTaxSummary","InventoryStockStatusByItem","InventoryStockStatusByVendor","InventoryValuationSummary","InventoryValuationSummaryBySite","LotNumberInStockBySite","PhysicalInventoryWorksheet","ProfitAndLossByClass","ProfitAndLossByJob","ProfitAndLossPrevYearComp","ProfitAndLossStandard","ProfitAndLossYTDComp","PurchaseByItemSummary","PurchaseByVendorSummary","SalesByCustomerSummary","SalesByItemSummary","SalesByRepSummary","SalesTaxLiability","SalesTaxRevenueSummary","SerialNumberInStockBySite","TrialBalance","VendorBalanceSummary"],"type":"string"}},{"description":"The default value is false, which means that the report won’t include any subcolumn information. To include all available types of subcolumns for this report, set `include_subcolumns` to true. The SDK won’t return subcolumn information for data that can be easily computed. (For example, the SDK doesn’t return the “percent of row” column.)","in":"query","name":"include_subcolumns","required":false,"schema":{"type":"boolean"}},{"description":"Allows you to query for a specified account type or for specific list elements.","in":"query","name":"report_account_filter","required":false,"schema":{"oneOf":[{"properties":{"account_type_filter":{"description":"Allows you to report on a specific account type.","enum":["APAndSalesTax","APOrCreditCard","ARAndAP","AccountsPayable","AccountsReceivable","AllowedFor1099","Asset","BalanceSheet","Bank","BankAndARAndAPAndUF","BankAndUF","CostOfSales","CreditCard","CurrentAsset","CurrentAssetAndExpense","CurrentLiability","Equity","EquityAndIncomeAndExpense","ExpenseAndOtherExpense","FixedAsset","IncomeAndExpense","IncomeAndOtherIncome","Liability","LiabilityAndEquity","LongTermLiability","NonPosting","OrdinaryExpense","OrdinaryIncome","OrdinaryIncomeAndCOGS","OrdinaryIncomeAndExpense","OtherAsset","OtherCurrentAsset","OtherCurrentLiability","OtherExpense","OtherIncome","OtherIncomeOrExpense"],"type":"string"}},"required":["account_type_filter"],"title":"AccountTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"If `report_basis` is rbCash, the report bases income and expenses on the dates when money changed hands.rbAccrual, the report bases income on the dates when customers were invoiced and bases expenses on the dates when bills were entered.rbNone, the report uses the default `report_basis`, which is either the QuickBooks Preference setting or the QuickBooks default for a given type of report.","in":"query","name":"report_basis","required":false,"schema":{"enum":["Accrual","Cash","None"],"type":"string"}},{"description":"Specifies the type of year that will be used for this report.","in":"query","name":"report_calendar","required":false,"schema":{"enum":["CalendarYear","FiscalYear","TaxYear"],"type":"string"}},{"description":"Allows you to query for a specified class. Classes can be used to separate transactions into meaningful categories. (For example, transactions could be classified according to department, business location, or type of work.) In QuickBooks, class tracking is off by default.","in":"query","name":"report_class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"The time period covered by this report.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_date_macro","required":false,"schema":{"enum":["All","LastMonth","LastMonthToDate","LastQuarter","LastQuarterToDate","LastWeek","LastWeekToDate","LastYear","LastYearToDate","NextFourWeeks","NextMonth","NextQuarter","NextWeek","NextYear","ThisMonth","ThisMonthToDate","ThisQuarter","ThisQuarterToDate","ThisWeek","ThisWeekToDate","ThisYear","ThisYearToDate","Today","Yesterday"],"type":"string"}},{"description":"The level of detail to include in the report.","in":"query","name":"report_detail_level_filter","required":false,"schema":{"enum":["All","AllExceptSummary","SummaryOnly"],"type":"string"}},{"description":"Allows you to query for a specified name type (customer, employee, vendor, or other) or query for specific list elements.","in":"query","name":"report_entity_filter","required":false,"schema":{"oneOf":[{"properties":{"entity_type_filter":{"description":"Allows you to report on a specific name type.","enum":["Customer","Employee","OtherName","Vendor"],"type":"string"}},"required":["entity_type_filter"],"title":"EntityTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Allows you to query for a specified item type (for example, discount, inventory, or non-inventory) or query for specific list elements.","in":"query","name":"report_item_filter","required":false,"schema":{"oneOf":[{"properties":{"item_type_filter":{"description":"Allows you to report on a specific item type.","enum":["AllExceptFixedAsset","Assembly","Discount","FixedAsset","Inventory","InventoryAndAssembly","NonInventory","OtherCharge","Payment","Sales","SalesTax","Service"],"type":"string"}},"required":["item_type_filter"],"title":"ItemTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Returns reports that were modified between these two dates (inclusive). The range of acceptable dates for both `from_report_modified_date` and `to_report_modified_date` is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).\n\nChoose at most one of: `report_modified_date_range_filter`, or `report_modified_date_range_macro`.","in":"query","name":"report_modified_date_range_filter","required":false,"schema":{"properties":{"from_report_modified_date":{"description":"Selects information from this date and later. The range of acceptable dates is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).","format":"date","type":"string"},"to_report_modified_date":{"description":"Selects information created on this date or earlier. The range of acceptable dates is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).","format":"date","type":"string"}},"type":"object"}},{"description":"The time period covered by this report.\n\nChoose at most one of: `report_modified_date_range_filter`, or `report_modified_date_range_macro`.","in":"query","name":"report_modified_date_range_macro","required":false,"schema":{"enum":["All","LastMonth","LastMonthToDate","LastQuarter","LastQuarterToDate","LastWeek","LastWeekToDate","LastYear","LastYearToDate","NextFourWeeks","NextMonth","NextQuarter","NextWeek","NextYear","ThisMonth","ThisMonthToDate","ThisQuarter","ThisQuarterToDate","ThisWeek","ThisWeekToDate","ThisYear","ThisYearToDate","Today","Yesterday"],"type":"string"}},{"description":"If you omit both `to_report_date` and `from_report_date`, the report will cover the current fiscal year to date.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_period","required":false,"schema":{"properties":{"from_report_date":{"description":"Selects information from this date and later. The range of acceptable `from_report_date` and `to_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"},"to_report_date":{"description":"Selects information created on this date or earlier. The range of acceptable `to_report_date` and `from_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"}},"type":"object"}},{"description":"Allows you to query for posting reports, non-posting reports, or reports that are either one.","in":"query","name":"report_posting_status_filter","required":false,"schema":{"enum":["Either","NonPosting","Posting"],"type":"string"}},{"description":"Allows you to report on specific transaction types (for example, charge, check, deposit, or estimate).","in":"query","name":"report_txn_type_filter","required":false,"schema":{"properties":{"txn_type_filter":{"items":{"enum":["ARRefundCreditCard","All","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"},"type":"array"}},"required":["txn_type_filter"],"type":"object"}},{"description":"Specifies whether you want the report to include only columns with active information, only columns with nonzero values, or all columns regardless of their content or active status.","in":"query","name":"return_columns","required":false,"schema":{"enum":["ActiveOnly","All","NonZero"],"type":"string"}},{"description":"Specifies whether you want the report to include only rows with active information, only rows with nonzero values, or all rows regardless of their content or active status.","in":"query","name":"return_rows","required":false,"schema":{"enum":["ActiveOnly","All","NonZero"],"type":"string"}},{"description":"`summarize_columns_by` determines which data the report calculates and how the columns will be labeled across the top of the report. For example, if you set the value to scbTwoWeek, the report’s column labels might be “Feb 10-23, 02,” “Feb 24-Mar9, 02,” and so on.","in":"query","name":"summarize_columns_by","required":false,"schema":{"enum":["Account","BalanceSheet","Class","Customer","CustomerType","Day","Employee","FourWeek","HalfMonth","IncomeStatement","ItemDetail","ItemType","Month","Payee","PaymentMethod","PayrollItemDetail","PayrollYtdDetail","Quarter","SalesRep","SalesTaxCode","ShipMethod","Terms","TotalOnly","TwoWeek","Vendor","VendorType","Week","Year"],"type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listGeneralSummaryReports_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List general summary reports","tags":["General Summary Reports"]}},"/connections/{connection_id}/simulator":{"get":{"description":"Beta: simulated connections don't match real QuickBooks in every case yet. The fake company file's contents (record counts) and the faults currently set, for a `type: simulated` connection.","operationId":"getSimulator","parameters":[{"description":"The connection to act on.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"company":{"description":"A summary of the fake company file's contents.","properties":{"company_name":{"type":"string"},"lists":{"additionalProperties":{"type":"integer"},"description":"Record counts by list type, e.g. `{\"Customer\": 3}`.","type":"object"},"open_iterators":{"type":"integer"},"transactions":{"additionalProperties":{"type":"integer"},"description":"Record counts by transaction type.","type":"object"}},"type":"object"},"connection_id":{"format":"uuid","type":"string"},"faults":{"additionalProperties":true,"description":"The faults currently set (see the requestBody of \"Set simulator faults\" for what each key accepts).","type":"object"},"links":{"properties":{"connection":{"format":"uri","type":"string"},"ui":{"format":"uri","type":"string"}},"type":"object"}},"type":"object"}},"type":"object"}}},"description":"The fake company's state and current faults"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"apiKey":[]}],"summary":"Get the simulator's state","tags":["Connections"],"x-mint":{"metadata":{"tag":"Beta"}}},"put":{"description":"Beta: simulated connections don't match real QuickBooks in every case yet. Make the next sync (or every sync, for connection_error) fail in a specific way -- 404s for a real (non-simulated) connection.","operationId":"setSimulatorFaults","parameters":[{"description":"The connection to act on.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"faults":{"properties":{"connection_error":{"description":"The Web Connector cannot reach QuickBooks, reported right after it authenticates and before it asks for any request, as the real one reports it: `qb_closed` is QuickBooks closed for an app authorized only while it runs (hresult 0x8004041D), `company_file_missing` the Web Connector failing to start QuickBooks on the stored file (0x80040408, \"Could not start QuickBooks.\"). Sticky until cleared (every sync fails with it) -- set to null/omit to clear.","enum":["qb_closed","company_file_missing","modal_dialog","company_file_mismatch","unexpected"],"nullable":true,"type":"string"},"latency_ms":{"description":"How long the fake QuickBooks \"thinks\" before each answer.","type":"integer"},"next_lost_response":{"description":"The next request that changes the company file (an add, mod, delete, void or merge) is applied but never answered: the Web Connector session dies before it can say, as a crashed connector's does. The request ends `timed_out`, and a workflow that sent it settles it (see the workflow guide). Queries and reports before it are answered normally and leave the fault armed, since a lost query is simply asked again. Consumed once, by that write.","type":"boolean"},"next_response_error":{"description":"The next request is answered with an hresult instead of qbXML (a malformed-XML style failure). The shorthand \"xml_error\", or `{\"hresult\": \"...\", \"message\": \"...\"}`. Consumed once. It ends as a real one does: a connection error's message (a dialog open, QuickBooks closed) leaves the request `retryable`; any other ends a write `error` with `error_type` `outcome_unknown`, and a query `unexpected_error`.","oneOf":[{"enum":["xml_error"],"type":"string"},{"properties":{"hresult":{"type":"string"},"message":{"type":"string"}},"type":"object"}]},"next_response_too_large":{"description":"The next request is applied to the company file, and its answer is over QuBe Sync's size limit on one answer: the request ends `error` with `error.error_type` `response_too_large` and no `response_xml`, as a real answer that large does, and a workflow that sent it sees `no_response` with reason `too_large`. Sandbox companies are too small to reach the limit otherwise. Consumed once.","type":"boolean"},"next_status":{"description":"The next request's *Rs carries this status instead of being processed. Consumed once.","properties":{"code":{"example":3100,"type":"integer"},"message":{"type":"string"}},"type":"object"},"stalled":{"description":"The connection stalls, so you can test your `connection.stalled` and `connection.resumed` handling: the value is the `stall_reason` it's sent with. While it's set the Web Connector doesn't run, so your requests wait, as on a real stall; once one of them is waiting, `connection.stalled` is sent within seconds instead of after the usual grace. Sticky until cleared: set to null or omit it to send `connection.resumed` and have the waiting requests answered.","enum":["not_checking_in","quickbooks_unavailable"],"nullable":true,"type":"string"}},"type":"object"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"company":{"description":"A summary of the fake company file's contents.","properties":{"company_name":{"type":"string"},"lists":{"additionalProperties":{"type":"integer"},"description":"Record counts by list type, e.g. `{\"Customer\": 3}`.","type":"object"},"open_iterators":{"type":"integer"},"transactions":{"additionalProperties":{"type":"integer"},"description":"Record counts by transaction type.","type":"object"}},"type":"object"},"connection_id":{"format":"uuid","type":"string"},"faults":{"additionalProperties":true,"description":"The faults currently set (see the requestBody of \"Set simulator faults\" for what each key accepts).","type":"object"},"links":{"properties":{"connection":{"format":"uri","type":"string"},"ui":{"format":"uri","type":"string"}},"type":"object"}},"type":"object"}},"type":"object"}}},"description":"Faults updated"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not a simulated connection"}},"security":[{"apiKey":[]}],"summary":"Set simulator faults","tags":["Connections"],"x-mint":{"metadata":{"tag":"Beta"}}}},"/connections/{connection_id}/sales-tax-payment-checks":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listSalesTaxPaymentChecks_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SalesTaxPaymentCheckQueryRq`, from qbXML 2.0.\n\nQueries for payments that have been made for sales tax owed (for example, to a state sales tax authority).\n\nIntuit's reference: [SalesTaxPaymentCheckQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/salestaxpaymentcheckquery).","operationId":"listSalesTaxPaymentChecks","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["Address","AddressBlock","Amount","BankAccountRef","DataExtRet","EditSequence","ExternalGUID","IsToBePrinted","Memo","PayeeEntityRef","RefNumber","SalesTaxPaymentCheckLineRet","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"Filters according to the item name or ID. You can use an ItemQuery request to get information about all the items that are set up in the QuickBooks file. “Items” are line items used for fast entry on sales and purchase forms. They include services and goods that a business buys and sells, as well as special items that perform calculations–for example, subtotal, discount, and sales-tax items.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"item_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listSalesTaxPaymentChecks_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List sales tax payment checks","tags":["Sales Tax Payment Checks"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createSalesTaxPaymentCheck_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SalesTaxPaymentCheckAddRq`, from qbXML 9.0. The `sales_tax_payment_check_add` wrapper from qbXML is also accepted.\n\nIntuit's reference: [SalesTaxPaymentCheckAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/salestaxpaymentcheckadd).","operationId":"createSalesTaxPaymentCheck","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"bank_account_ref":{"full_name":"Checking"},"is_to_be_printed":true,"memo":"Monthly service","payee_entity_ref":{"full_name":"Northwind Supplies"},"sales_tax_payment_check_line_add":[{"amount":250.0}],"txn_date":"2026-01-15"},"schema":{"oneOf":[{"properties":{"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"}},"required":["is_to_be_printed"],"title":"IsToBePrinted","type":"object"},{"properties":{"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["ref_number"],"title":"RefNumber","type":"object"}],"properties":{"address":{"description":"If an address request fails, some combination of address fields might be too long. In a Check, BillPaymentCheck, or SalesTaxPaymentCheck message, Address is the address that will print on the check.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"bank_account_ref":{"description":"Refers to the account from which the funds are being drawn for this check, for example, Checking or Savings. If a `bank_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["Address","AddressBlock","Amount","BankAccountRef","DataExtRet","EditSequence","ExternalGUID","IsToBePrinted","ListID","Memo","OwnerID","PayeeEntityRef","RefNumber","SalesTaxPaymentCheckLineRet","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_payment_check_line_add":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["amount"],"type":"object"},"type":"array"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"}},"required":["bank_account_ref","payee_entity_ref","sales_tax_payment_check_line_add","txn_date"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createSalesTaxPaymentCheck_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create sales tax payment check","tags":["Sales Tax Payment Checks"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateSalesTaxPaymentCheck_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SalesTaxPaymentCheckModRq`, from qbXML 9.0. The `sales_tax_payment_check_mod` wrapper from qbXML is also accepted.\n\nIntuit's reference: [SalesTaxPaymentCheckMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/salestaxpaymentcheckmod).","operationId":"updateSalesTaxPaymentCheck","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","txn_id":"1A2B-1700000000"},"schema":{"not":{"anyOf":[{"required":["is_to_be_printed","ref_number"]}]},"properties":{"address":{"description":"If an address request fails, some combination of address fields might be too long. In a Check, BillPaymentCheck, or SalesTaxPaymentCheck message, Address is the address that will print on the check.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"bank_account_ref":{"description":"Refers to the account from which the funds are being drawn for this check, for example, Checking or Savings. If a `bank_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"include_ret_element":{"items":{"enum":["Address","AddressBlock","Amount","BankAccountRef","DataExtRet","EditSequence","ExternalGUID","IsToBePrinted","ListID","Memo","OwnerID","PayeeEntityRef","RefNumber","SalesTaxPaymentCheckLineRet","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.\n\nChoose at most one of: `is_to_be_printed`, or `ref_number`.","type":"boolean"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `is_to_be_printed`, or `ref_number`.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateSalesTaxPaymentCheck_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update sales tax payment check","tags":["Sales Tax Payment Checks"]}},"/connections/{connection_id}/companies":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listCompanies_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CompanyQueryRq`.\n\nA CompanyQueryRq request message returns detailed information about a QuickBooks company file, such as the company’s address and legal name, certain preferences that are set, and any services that the company is subscribed to, such as payroll, QuickBooks Merchant Services, and so forth. Company information can’t be added or modified through the SDK, only through the QuickBooks user interface. Note: If you include an explicit end tag in a CompanyQueryRq request, you will receive an error if there is any space between the opening tag and the end tag.\n\nThe following table shows valid and invalid ways of constructing this request:\n\n- Valid (no space between opening and closing tags)\n- Valid (combined opening and closing tag)\n- Invalid (space between opening and closing tags)\n\nIntuit's reference: [CompanyQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/companyquery).","operationId":"listCompanies","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AccountantCopy","Address","AddressBlock","CompanyAddressBlockForCustomer","CompanyAddressForCustomer","CompanyEmailForCustomer","CompanyName","CompanyType","CompanyWebSite","DataExtRet","EIN","Email","Fax","FirstMonthFiscalYear","FirstMonthIncomeTaxYear","IsSampleCompany","LegalAddress","LegalCompanyName","Phone","SSN","SubscribedServices","TaxForm"],"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listCompanies_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List companies","tags":["Companies"]}},"/connections/{connection_id}/payroll-liability-adjustments":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listPayrollLiabilityAdjustments_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollLiabilityAdjustmentQueryRq`.\n\nIntuit's reference: [PayrollLiabilityAdjustmentQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollliabilityadjustmentquery).","operationId":"listPayrollLiabilityAdjustments","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AccountRef","Amount","ClassRef","EditSequence","EmployeeRef","IsAffectingAccounts","Memo","PayrollDate","PayrollLiabilityAdjustmentLineRet","RefNumber","TaxTableVersion","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"QuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"format":"date-time","type":"string"},"to_modified_date":{"format":"date-time","type":"string"}},"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"payroll_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_payroll_date":false,"to_payroll_date":false}},"properties":{"from_payroll_date":{"format":"date","type":"string"},"to_payroll_date":{"format":"date","type":"string"}},"title":"FromPayrollDate + ToPayrollDate","type":"object"},{"properties":{"date_macro":{"enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"type":"string"},"to_ref_number":{"type":"string"}},"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"format":"date","type":"string"},"to_txn_date":{"format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listPayrollLiabilityAdjustments_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List payroll liability adjustments","tags":["Payroll Liability Adjustments"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createPayrollLiabilityAdjustment_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollLiabilityAdjustmentAddRq`. The `payroll_liability_adjustment_add` wrapper from qbXML is also accepted.\n\nIntuit's reference: [PayrollLiabilityAdjustmentAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollliabilityadjustmentadd).","operationId":"createPayrollLiabilityAdjustment","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"is_affecting_accounts":true,"memo":"Monthly service","payroll_liability_adjustment_line_add":[{"account_ref":{"full_name":"Office Supplies"},"amount":250.0,"memo":"Monthly service"}],"ref_number":"1001","txn_date":"2026-01-15"},"schema":{"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"class_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"def_macro":{"type":"string"},"employee_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["AccountRef","Amount","ClassRef","EditSequence","EmployeeRef","IsAffectingAccounts","Memo","PayrollDate","PayrollLiabilityAdjustmentLineRet","RefNumber","TaxTableVersion","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_affecting_accounts":{"type":"boolean"},"memo":{"type":"string"},"payroll_date":{"format":"date","type":"string"},"payroll_liability_adjustment_line_add":{"items":{"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"amount":{"type":"number"},"class_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"company_paid_attribute":{"enum":["IsExpense","IsLiability","IsLiabilityAndExpense","NotApplicable"],"type":"string"},"experience_mod_rate_amount":{"type":"number"},"income_subject_to_tax_amount":{"type":"number"},"memo":{"type":"string"},"other_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"wage_base_amount":{"type":"number"},"workers_comp_amount":{"type":"number"},"workers_comp_code_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"ref_number":{"type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"tax_table_version":{"type":"integer"},"txn_date":{"format":"date","type":"string"}},"required":["is_affecting_accounts","payroll_liability_adjustment_line_add"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createPayrollLiabilityAdjustment_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create payroll liability adjustment","tags":["Payroll Liability Adjustments"]}},"/connections/{connection_id}/estimates":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listEstimates_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `EstimateQueryRq`.\n\nQueries for the specified estimate or set of estimates.\n\nIntuit's reference: [EstimateQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/estimatequery).","operationId":"listEstimates","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items` or `include_linked_txns`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"description":"If you set `include_linked_txns` to true, then the returned object will include a list of all the transactions linked to the queried object. (This list is similar to the History view of a transaction in the user interface, but not identical, as the SDK list contains only linked transactions, not items.) Each linked transaction will be represented by a `linked_txn` aggregate.","in":"query","name":"include_linked_txns","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["BillAddress","BillAddressBlock","ClassRef","CurrencyRef","CustomerMsgRef","CustomerRef","CustomerSalesTaxCodeRef","DataExtRet","DueDate","EditSequence","EstimateLineGroupRet","EstimateLineRet","ExchangeRate","ExternalGUID","FOB","IsActive","IsTaxIncluded","IsToBeEmailed","ItemSalesTaxRef","LinkedTxn","Memo","Other","PONumber","RefNumber","SalesRepRef","SalesTaxPercentage","SalesTaxTotal","ShipAddress","ShipAddressBlock","Subtotal","TemplateRef","TermsRef","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listEstimates_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List estimates","tags":["Estimates"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createEstimate_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `EstimateAddRq`. The `estimate_add` wrapper from qbXML is also accepted.\n\nAdds an estimate: a quote or bid for a sale proposed to a customer. An estimate doesn't post to any account. `customer_ref` is required, and lines go in `estimate_line_add`. QuickBooks users can turn an accepted estimate into an invoice, but the API can't link an invoice to an estimate.\n\nAn estimate is a non-posting transaction, so it doesn’t affect a company’s balance sheet or income statement.\n\nIntuit's reference: [EstimateAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/estimateadd).","operationId":"createEstimate","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"bill_address":{"addr1":"123 Main St","city":"Springfield","postal_code":"62701","state":"IL"},"customer_ref":{"full_name":"Acme Corp"},"estimate_line_add":[{"desc":"Blue widget, large","item_ref":{"full_name":"Widget"},"quantity":2,"rate":125.0}],"memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15"},"schema":{"not":{"anyOf":[{"properties":{"estimate_line_add":{"maxItems":0},"estimate_line_group_add":{"maxItems":0}}}]},"properties":{"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"estimate_line_add":{"description":"One line of this estimate. Compare with EstimateLineGroup, which represents a previously defined group of lines in the estimate. In a Mod request, you can add a new line by supplying a `txn_line_id` value of -1.\n\nAt least one entry is required across `estimate_line_add` and `estimate_line_group_add`; they combine, any number of each. QuickBooks receives them in that order: every `estimate_line_add`, then every `estimate_line_group_add`.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["markup_rate","markup_rate_percent"]},{"required":["markup_rate","price_level_ref"]},{"required":["markup_rate_percent","price_level_ref"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"markup_rate":{"description":"The markup that will be passed on to the customer for this item on this estimate. Amount, quantity, rate, and markup are related in the following way: Amount = (Quantity \\* Rate) + amount of markup\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`, or `price_level_ref`.","type":"number"},"markup_rate_percent":{"description":"The markup (expressed as a percentage) that will be passed on to the customer for this item on this estimate. Amount, quantity, rate, and markup are related in the following way: Amount = (Quantity \\* Rate) + amount of markup\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`, or `price_level_ref`.","type":"number"},"option_for_price_rule_conflict":{"description":"Flag to override price rule conflict.","enum":["BasePrice","Zero"],"type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`, or `price_level_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"estimate_line_group_add":{"description":"Represents a previously defined group of lines in the estimate. Compare with EstimateLine, which represents just one line in the estimate.\n\nAt least one entry is required across `estimate_line_add` and `estimate_line_group_add`; they combine, any number of each. QuickBooks receives them in that order: every `estimate_line_add`, then every `estimate_line_group_add`.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["item_group_ref"],"type":"object"},"type":"array"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"include_ret_element":{"items":{"enum":["BillAddress","BillAddressBlock","ClassRef","CurrencyRef","CustomerMsgRef","CustomerRef","CustomerSalesTaxCodeRef","DataExtRet","DueDate","EditSequence","EstimateLineGroupRet","EstimateLineRet","ExchangeRate","ExternalGUID","FOB","IsActive","IsTaxIncluded","IsToBeEmailed","ItemSalesTaxRef","LinkedTxn","ListID","Memo","Other","OwnerID","PONumber","RefNumber","SalesRepRef","SalesTaxPercentage","SalesTaxTotal","ShipAddress","ShipAddressBlock","Subtotal","TemplateRef","TermsRef","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Message that appears in reports, but not on the estimate.","type":"string"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"po_number":{"description":"Purchase order number.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"}},"required":["customer_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createEstimate_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create estimate","tags":["Estimates"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateEstimate_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `EstimateModRq`, from qbXML 3.0. The `estimate_mod` wrapper from qbXML is also accepted.\n\nSome fields in an EstimateMod request can’t be cleared. If any of the following fields is included in an estimate modify request, it must contain a value:\n\n- `customer_ref`\n- `template_ref`\n- `txn_date`\n- `is_active`\n- `create_change_order`\n- `due_date`\n- `item_sales_tax_ref`\n\nWithin `estimate_line_mod` or `estimate_line_group_mod`:\n\n- `item_ref`\n- Quantity\n- Rate\n- Amount>\n- `sales_tax_code_ref`\n- Markup\n\n(For more details about what it means for a field to be clearable or not clearable, see [Modify, delete, and void requests and responses](https://developer.intuit.com/app/developer/qbdesktop/docs/develop/exploring-the-quickbooks-desktop-sdk).)\n\nIntuit's reference: [EstimateMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/estimatemod).","operationId":"updateEstimate","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"bill_address":{"addr1":"123 Main St","city":"Springfield","postal_code":"62701","state":"IL"},"customer_ref":{"full_name":"Acme Corp"},"edit_sequence":"1700000000","memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","txn_id":"1A2B-1700000000"},"schema":{"properties":{"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"create_change_order":{"description":"If `create_change_order` is true, the modifications are tracked as a “change order” that appears in the description field at the bottom of the estimate form in QuickBooks. A change order specifies exactly what changed, the dollar amount of each change, and the net dollar change to the estimate.","type":"boolean"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"estimate_line_group_mod":{"description":"Represents a previously defined group of lines in the estimate. Compare with EstimateLine, which represents just one line in the estimate.\n\n`estimate_line_mod` and `estimate_line_group_mod` combine: any number of each. QuickBooks receives them in that order: every `estimate_line_mod`, then every `estimate_line_group_mod`.","items":{"properties":{"estimate_line_mod":{"description":"One line of this estimate. Compare with EstimateLineGroup, which represents a previously defined group of lines in the estimate. In a Mod request, you can add a new line by supplying a `txn_line_id` value of -1.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["markup_rate","markup_rate_percent"]},{"required":["markup_rate","price_level_ref"]},{"required":["markup_rate_percent","price_level_ref"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"markup_rate":{"description":"The markup that will be passed on to the customer for this item on this estimate. Amount, quantity, rate, and markup are related in the following way: Amount = (Quantity \\* Rate) + amount of markup\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`, or `price_level_ref`.","type":"number"},"markup_rate_percent":{"description":"The markup (expressed as a percentage) that will be passed on to the customer for this item on this estimate. Amount, quantity, rate, and markup are related in the following way: Amount = (Quantity \\* Rate) + amount of markup\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`, or `price_level_ref`.","type":"number"},"option_for_price_rule_conflict":{"description":"Flag to override price rule conflict.","enum":["BasePrice","Zero"],"type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`, or `price_level_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"estimate_line_mod":{"description":"One line of this estimate. Compare with EstimateLineGroup, which represents a previously defined group of lines in the estimate. In a Mod request, you can add a new line by supplying a `txn_line_id` value of -1.\n\n`estimate_line_mod` and `estimate_line_group_mod` combine: any number of each. QuickBooks receives them in that order: every `estimate_line_mod`, then every `estimate_line_group_mod`.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["markup_rate","markup_rate_percent"]},{"required":["markup_rate","price_level_ref"]},{"required":["markup_rate_percent","price_level_ref"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"markup_rate":{"description":"The markup that will be passed on to the customer for this item on this estimate. Amount, quantity, rate, and markup are related in the following way: Amount = (Quantity \\* Rate) + amount of markup\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`, or `price_level_ref`.","type":"number"},"markup_rate_percent":{"description":"The markup (expressed as a percentage) that will be passed on to the customer for this item on this estimate. Amount, quantity, rate, and markup are related in the following way: Amount = (Quantity \\* Rate) + amount of markup\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`, or `price_level_ref`.","type":"number"},"option_for_price_rule_conflict":{"description":"Flag to override price rule conflict.","enum":["BasePrice","Zero"],"type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.\n\nChoose at most one of: `markup_rate`, or `markup_rate_percent`, or `price_level_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"include_ret_element":{"items":{"enum":["BillAddress","BillAddressBlock","ClassRef","CurrencyRef","CustomerMsgRef","CustomerRef","CustomerSalesTaxCodeRef","DataExtRet","DueDate","EditSequence","EstimateLineGroupRet","EstimateLineRet","ExchangeRate","ExternalGUID","FOB","IsActive","IsTaxIncluded","IsToBeEmailed","ItemSalesTaxRef","LinkedTxn","ListID","Memo","Other","OwnerID","PONumber","RefNumber","SalesRepRef","SalesTaxPercentage","SalesTaxTotal","ShipAddress","ShipAddressBlock","Subtotal","TemplateRef","TermsRef","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Message that appears in reports, but not on the estimate.","type":"string"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"po_number":{"description":"Purchase order number.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateEstimate_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update estimate","tags":["Estimates"]}},"/connections/{connection_id}/terms":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listTerms_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `TermsQueryRq`.\n\nQueries for the terms or set of terms. Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a TermsRef aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.\n\nIntuit's reference: [TermsQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/termsquery).","operationId":"listTerms","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["DayOfMonthDue","DiscountDayOfMonth","DiscountPct","DueNextMonthDays","EditSequence","IsActive","ListID","Name","StdDiscountDays","StdDueDays","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listTerms_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List terms","tags":["Terms"]}},"/connections/{connection_id}/payroll-item-direct-deposits":{"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createPayrollItemDirectDeposit_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollItemDirectDepositAddRq`. The `payroll_item_direct_deposit_add` wrapper from qbXML is also accepted.\n\nIntuit's reference: [PayrollItemDirectDepositAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollitemdirectdepositadd).","operationId":"createPayrollItemDirectDeposit","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"liability_account_ref":{"full_name":"Payroll Liabilities"},"name":"Direct Deposit"},"schema":{"properties":{"include_ret_element":{"items":{"enum":["EditSequence","IsActive","LiabilityAccountRef","ListID","Name","PayrollItemDetailTypeValue","TimeCreated","TimeModified"],"type":"string"},"type":"array"},"is_active":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"name":{"type":"string"},"payroll_item_detail_type_value":{"type":"integer"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["liability_account_ref","name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createPayrollItemDirectDeposit_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create payroll item direct deposit","tags":["Payroll Item Direct Deposits"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updatePayrollItemDirectDeposit_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollItemDirectDepositModRq`. The `payroll_item_direct_deposit_mod` wrapper from qbXML is also accepted.\n\nIntuit's reference: [PayrollItemDirectDepositMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollitemdirectdepositmod).","operationId":"updatePayrollItemDirectDeposit","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Direct Deposit"},"schema":{"properties":{"edit_sequence":{"type":"string"},"include_ret_element":{"items":{"enum":["EditSequence","IsActive","LiabilityAccountRef","ListID","Name","PayrollItemDetailTypeValue","TimeCreated","TimeModified"],"type":"string"},"type":"array"},"is_active":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"list_id":{"type":"string"},"name":{"type":"string"},"payroll_item_detail_type_value":{"type":"integer"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updatePayrollItemDirectDeposit_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update payroll item direct deposit","tags":["Payroll Item Direct Deposits"]}},"/connections/{connection_id}/time-reports":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listTimeReports_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `TimeReportQueryRq`, from qbXML 2.0.\n\nThe Time Reports category includes summary and detail reports related by time. Summarized columns can be customized in these reports.\n\nIntuit's reference: [TimeReportQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/timereportquery).","operationId":"listTimeReports","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Set `display_report` to true to display this report within the QuickBooks UI. (Default is false.) If you want the request to display the report without returning any data to your application, set the responseData attribute to includeNone.","in":"query","name":"display_report","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_column","required":false,"schema":{"items":{"enum":["Account","Aging","Amount","AmountDifference","AverageCost","BilledDate","BillingStatus","CalculatedAmount","Class","ClearedStatus","CostPrice","Credit","Currency","Date","Debit","DeliveryDate","DueDate","EstimateActive","ExchangeRate","FOB","IncomeSubjectToTax","Invoiced","Item","ItemDesc","LastModifiedBy","LatestOrPriorState","Memo","ModifiedTime","Name","NameAccountNumber","NameAddress","NameCity","NameContact","NameEmail","NameFax","NamePhone","NameState","NameZip","OpenBalance","OriginalAmount","PONumber","PaidAmount","PaidStatus","PaidThroughDate","PaymentMethod","PayrollItem","PrintStatus","ProgressAmount","ProgressPercent","Quantity","QuantityAvailable","QuantityOnHand","QuantityOnSalesOrder","ReceivedQuantity","RefNumber","RunningBalance","SSNOrTaxID","SalesRep","SalesTaxCode","SerialOrLotNumber","ShipDate","ShipMethod","SourceName","SplitAccount","TaxLine","TaxTableVersion","Terms","TxnID","TxnNumber","TxnType","UnitPrice","UserEdit","ValueOnHand","WageBase","WageBaseTips"],"type":"string"},"type":"array"}},{"description":"The default value is false, which means that the report won’t include any subcolumn information. To include all available types of subcolumns for this report, set `include_subcolumns` to true. The SDK won’t return subcolumn information for data that can be easily computed. (For example, the SDK doesn’t return the “percent of row” column.)","in":"query","name":"include_subcolumns","required":false,"schema":{"type":"boolean"}},{"description":"Specifies the type of year that will be used for this report.","in":"query","name":"report_calendar","required":false,"schema":{"enum":["CalendarYear","FiscalYear","TaxYear"],"type":"string"}},{"description":"Allows you to query for a specified class. Classes can be used to separate transactions into meaningful categories. (For example, transactions could be classified according to department, business location, or type of work.) In QuickBooks, class tracking is off by default.","in":"query","name":"report_class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"The time period covered by this report.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_date_macro","required":false,"schema":{"enum":["All","LastMonth","LastMonthToDate","LastQuarter","LastQuarterToDate","LastWeek","LastWeekToDate","LastYear","LastYearToDate","NextFourWeeks","NextMonth","NextQuarter","NextWeek","NextYear","ThisMonth","ThisMonthToDate","ThisQuarter","ThisQuarterToDate","ThisWeek","ThisWeekToDate","ThisYear","ThisYearToDate","Today","Yesterday"],"type":"string"}},{"description":"Allows you to query for a specified name type (customer, employee, vendor, or other) or query for specific list elements.","in":"query","name":"report_entity_filter","required":false,"schema":{"oneOf":[{"properties":{"entity_type_filter":{"description":"Allows you to report on a specific name type.","enum":["Customer","Employee","OtherName","Vendor"],"type":"string"}},"required":["entity_type_filter"],"title":"EntityTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Allows you to query for a specified item type (for example, discount, inventory, or non-inventory) or query for specific list elements.","in":"query","name":"report_item_filter","required":false,"schema":{"oneOf":[{"properties":{"item_type_filter":{"description":"Allows you to report on a specific item type.","enum":["AllExceptFixedAsset","Assembly","Discount","FixedAsset","Inventory","InventoryAndAssembly","NonInventory","OtherCharge","Payment","Sales","SalesTax","Service"],"type":"string"}},"required":["item_type_filter"],"title":"ItemTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"If you omit both `to_report_date` and `from_report_date`, the report will cover the current fiscal year to date.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_period","required":false,"schema":{"properties":{"from_report_date":{"description":"Selects information from this date and later. The range of acceptable `from_report_date` and `to_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"},"to_report_date":{"description":"Selects information created on this date or earlier. The range of acceptable `to_report_date` and `from_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"}},"type":"object"}},{"description":"Specifies whether you want the report to include only columns with active information, only columns with nonzero values, or all columns regardless of their content or active status.","in":"query","name":"return_columns","required":false,"schema":{"enum":["ActiveOnly","All","NonZero"],"type":"string"}},{"description":"Specifies whether you want the report to include only rows with active information, only rows with nonzero values, or all rows regardless of their content or active status.","in":"query","name":"return_rows","required":false,"schema":{"enum":["ActiveOnly","All","NonZero"],"type":"string"}},{"description":"`summarize_columns_by` determines which data the report calculates and how the columns will be labeled across the top of the report. For example, if you set the value to scbTwoWeek, the report’s column labels might be “Feb 10-23, 02,” “Feb 24-Mar9, 02,” and so on.","in":"query","name":"summarize_columns_by","required":false,"schema":{"enum":["Account","BalanceSheet","Class","Customer","CustomerType","Day","Employee","FourWeek","HalfMonth","IncomeStatement","ItemDetail","ItemType","Month","Payee","PaymentMethod","PayrollItemDetail","PayrollYtdDetail","Quarter","SalesRep","SalesTaxCode","ShipMethod","Terms","TotalOnly","TwoWeek","Vendor","VendorType","Week","Year"],"type":"string"}},{"description":"Allows you to report on time that has been recorded in a particular category.","in":"query","name":"time_report_type","required":true,"schema":{"enum":["TimeByItem","TimeByJobDetail","TimeByJobSummary","TimeByName"],"type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listTimeReports_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List time reports","tags":["Time Reports"]}},"/connections/{connection_id}/data-exts":{"delete":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/deleteDataExt_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `DataExtDelRq`, from qbXML 2.0.\n\nThis request deletes the data from the specified existing custom field or private extension. If you want to clear the data extension value (to make the custom field or private extension blank), you must use `data_ext_del`. The DataExtMod request can’t be used to clear the field.\n\nIntuit's reference: [DataExtDel](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/dataextdel).","operationId":"deleteDataExt","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"data_ext_del":{"data_ext_name":"Color","list_data_ext_type":"Customer","list_obj_ref":{"full_name":"Acme Corp"},"owner_id":"0"}},"schema":{"properties":{"data_ext_del":{"description":"DataExt The DataExtAdd request writes data to the specified data extension for the specified object. Before you can use a DataExtAdd message to populate a data-extension field with data, the field must be defined, either through the SDK via a DataExtDefAdd request or via the QuickBooks UI by the interactive user.","oneOf":[{"not":{"properties":{"list_data_ext_type":false,"list_obj_ref":false}},"properties":{"list_data_ext_type":{"description":"The type of list object (e.g. Customer) that this data extension is attached to.","enum":["Account","Customer","Employee","Item","OtherName","Vendor"],"type":"string"},"list_obj_ref":{"description":"Refers to a list object. In a DataExtAdd request, the list object ref must be the same type as the type specified in `list_data_ext_type`. If a `list_obj_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"ListDataExtType + ListObjRef","type":"object"},{"not":{"properties":{"txn_data_ext_type":false,"txn_id":false,"txn_line_id":false}},"properties":{"txn_data_ext_type":{"description":"The type of transaction that the data extension belongs to.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","VendorCredit"],"type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"title":"TxnDataExtType + TxnID + TxnLineID","type":"object"},{"properties":{"other_data_ext_type":{"description":"Not supported.","enum":["Company"],"type":"string"}},"required":["other_data_ext_type"],"title":"OtherDataExtType","type":"object"}],"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","owner_id"],"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["data_ext_del"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/deleteDataExt_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Delete data ext","tags":["Data Exts"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createDataExt_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `DataExtAddRq`, from qbXML 2.0. The `data_ext_add` wrapper from qbXML is also accepted.\n\nWrites data to one data extension. This request can only be invoked if a data extension definition has already been defined for the target object type. That is, before you can perform the DataExtAdd on a particular customer, say John Henry, the data extension must already be defined for the Customer object. Notice that a data extension definition can be defined in either of two ways: via DataExtDefAdd as already described, or via the QuickBooks UI by the user specifying a custom field. Only custom fields can be defined through the UI, not private data extensions.\n\nDataExtAdd adds a custom field (if `owner_id` is set to 0) or a private data extension (if `owner_id` is set to a GUID) containing the specified value. The custom field or private data extension and value is added to the specified list object, or transaction, or transaction line item.\n\nDataExtAdd will return error 3180 if you invoke this on a custom data ext definition that has been deleted and then re-added from the UI. (You can’t re-add a deleted data ext def via the SDK.) However, you can use DataExtMod to write data to that re-added data ext def.\n\nImportant: If you want to perform a DataExtAdd on a transaction line item, you should use custom fields instead of private data extensions because only custom field data will be returned in queries. Currently, private data isn’t returned.\n\nBoth DataExtAdd and DataExtMod cause a Modify event to be generated for the parent object. For example invoking one of these on a Customer causes a Customer Modify event. The Time Modified value for that parent object is also updated.\n\nIntuit's reference: [DataExtAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/dataextadd).","operationId":"createDataExt","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"data_ext_name":"Color","data_ext_value":"Blue","list_data_ext_type":"Customer","list_obj_ref":{"full_name":"Acme Corp"},"owner_id":"0"},"schema":{"oneOf":[{"not":{"properties":{"list_data_ext_type":false,"list_obj_ref":false}},"properties":{"list_data_ext_type":{"description":"The type of list object (e.g. Customer) that this data extension is attached to.","enum":["Account","Customer","Employee","Item","OtherName","Vendor"],"type":"string"},"list_obj_ref":{"description":"Refers to a list object. In a DataExtAdd request, the list object ref must be the same type as the type specified in `list_data_ext_type`. If a `list_obj_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"ListDataExtType + ListObjRef","type":"object"},{"not":{"properties":{"txn_data_ext_type":false,"txn_id":false,"txn_line_id":false}},"properties":{"txn_data_ext_type":{"description":"The type of transaction that the data extension belongs to.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","VendorCredit"],"type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"title":"TxnDataExtType + TxnID + TxnLineID","type":"object"},{"properties":{"other_data_ext_type":{"description":"Not supported.","enum":["Company"],"type":"string"}},"required":["other_data_ext_type"],"title":"OtherDataExtType","type":"object"}],"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createDataExt_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create data ext","tags":["Data Exts"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateDataExt_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `DataExtModRq`, from qbXML 2.0. The `data_ext_mod` wrapper from qbXML is also accepted.\n\nSets the value of a custom field (`owner_id` 0) or private extension (your GUID) on a list object or transaction. The object needn't have a value yet: on QuickBooks Enterprise 24.0 (2026-10-10) this set a custom field's first value on a new sales order, so you don't need data_ext.create first. The definition must reach the object's type: a custom field defined on Customer also reaches credit memos, estimates, invoices, sales orders and sales receipts. It can't clear a value; delete the value instead.\n\nIf you want to clear the data extension value (to make the custom field or private extension blank), you must use DataExtDel. The DataExtMod request can’t be used to clear the field.\n\nBoth DataExtAdd and DataExtMod cause a Modify event to be generated for the parent object. For example invoking one of these on a Customer causes a Customer Modify event. The Time Modified value for that parent object is also updated.\n\nNotice that the Mod operation doesn’t support macros like DataExtAdd does.\n\nIntuit's reference: [DataExtMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/dataextmod).","operationId":"updateDataExt","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"data_ext_name":"Color","data_ext_value":"Blue","list_data_ext_type":"Customer","list_obj_ref":{"full_name":"Acme Corp"},"owner_id":"0"},"schema":{"oneOf":[{"not":{"properties":{"list_data_ext_type":false,"list_obj_ref":false}},"properties":{"list_data_ext_type":{"description":"The type of list object (e.g. Customer) that this data extension is attached to.","enum":["Account","Customer","Employee","Item","OtherName","Vendor"],"type":"string"},"list_obj_ref":{"description":"Refers to a list object. In a DataExtAdd request, the list object ref must be the same type as the type specified in `list_data_ext_type`. If a `list_obj_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"title":"ListDataExtType + ListObjRef","type":"object"},{"not":{"properties":{"txn_data_ext_type":false,"txn_id":false,"txn_line_id":false}},"properties":{"txn_data_ext_type":{"description":"The type of transaction that the data extension belongs to.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","VendorCredit"],"type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"title":"TxnDataExtType + TxnID + TxnLineID","type":"object"},{"properties":{"other_data_ext_type":{"description":"Not supported.","enum":["Company"],"type":"string"}},"required":["other_data_ext_type"],"title":"OtherDataExtType","type":"object"}],"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateDataExt_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update data ext","tags":["Data Exts"]}},"/connections/{connection_id}/item-non-inventories":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listItemNonInventories_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemNonInventoryQueryRq`.\n\nQueries for the specified non inventory item or set of items.\n\nIntuit's reference: [ItemNonInventoryQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemnoninventoryquery).","operationId":"listItemNonInventories","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `full_name` or `list_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters according to the object’s class.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["BarCodeValue","ClassRef","DataExtRet","EditSequence","ExternalGUID","FullName","IsActive","IsTaxIncluded","ListID","ManufacturerPartNumber","Name","ParentRef","SalesAndPurchase","SalesOrPurchase","SalesTaxCodeRef","Sublevel","TimeCreated","TimeModified","UnitOfMeasureSetRef"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listItemNonInventories_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List item non inventories","tags":["Item Non Inventories"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createItemNonInventory_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemNonInventoryAddRq`. The `item_non_inventory_add` wrapper from qbXML is also accepted.\n\nAdds a non-inventory item: something the business buys but doesn't stock, such as office supplies, or materials bought for one job and billed to the customer. Send `sales_or_purchase` for an item it only sells or only buys, or `sales_and_purchase` for one it does both with.\n\n1. Materials or parts that are part of the business’s overhead (for example, office supplies).\n2. Materials or parts that the business buys to finish a specific job and then charges back to the customer.\n\nIntuit's reference: [ItemNonInventoryAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemnoninventoryadd).","operationId":"createItemNonInventory","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"Widget","sales_or_purchase":{"account_ref":{"full_name":"Sales"}}},"schema":{"oneOf":[{"properties":{"sales_or_purchase":{"description":"A `sales_or_purchase` aggregate is used for items that are meant to be either purchased or sold, but not both. For example, a `sales_or_purchase` aggregate would be used for a non-inventory item that is purchased but not sold, or for a service item that is sold but not purchased.","not":{"anyOf":[{"required":["price","price_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"price":{"description":"The purchase price or sales price of this item.\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"},"price_percent":{"description":"The price expressed as a percent. (For example, an auto shop that calculates the cost of labor as a percentage of the cost of parts might have a service item called “Labor” that uses `price_percent` instead of Price.)\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"}},"type":"object"}},"required":["sales_or_purchase"],"title":"SalesOrPurchase","type":"object"},{"properties":{"sales_and_purchase":{"description":"A `sales_and_purchase` aggregate is used for items that are meant to be both purchased and sold, such as an “other charge” item that is reimbursable.","properties":{"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"}},"required":["sales_and_purchase"],"title":"SalesAndPurchase","type":"object"}],"properties":{"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["BarCodeValue","ClassRef","DataExtRet","EditSequence","ExternalGUID","FullName","IsActive","IsTaxIncluded","ListID","ManufacturerPartNumber","Name","OwnerID","ParentRef","SalesAndPurchase","SalesOrPurchase","SalesTaxCodeRef","Sublevel","TimeCreated","TimeModified","TxnID","TxnNumber","UnitOfMeasureSetRef"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createItemNonInventory_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create item non inventory","tags":["Item Non Inventories"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateItemNonInventory_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemNonInventoryModRq`. The `item_non_inventory_mod` wrapper from qbXML is also accepted.\n\nModifies a non inventory item. About `sales_or_purchase_mod` versus `sales_and_purchase_mod` in an ItemNonInventoryMod request:\n\nYou can’t change the reimbursable status of a non-inventory item through the SDK. For example, if a non-inventory item is marked as non-reimbursable in QuickBooks, you can’t send a modify request that includes a `sales_and_purchase_mod` aggregate. Similarly, if you send an ItemNonInventoryAdd request that includes a `sales_or_purchase` aggregate, you can’t later modify that item using a `sales_and_purchase_mod` aggregate.\n\nClick on ItemNonInventoryMod or ItemNonInventoryRet for more information about non-inventory items in QuickBooks.\n\nStarting with qbXML spec 7.0, you can modify the various account references using the appropriate account reference aggregate and the matching Apply Account RefToExistingTxns boolean. You need to use the boolean when you change an account ref because the QuickBooks UI displays a prompt asking whether the change should apply to existing transactions or not. Specifying True for the boolean basically dismisses this with a “Yes” answer, allowing your changes to be made and changes any existing transactions that use the item with that `account_ref`. Specifying “False” means that the mod won’t take affect if there are existing transactions.\n\nSetting this to “True” should be used with caution and normally only after some user has indicated that they want those changes made to all those existing transactions!\n\nIf any affected transactions are protected by a closing date and password, the `account_ref` changes won’t be made and so the Mod request will return an error without making the requested Mod.\n\nIntuit's reference: [ItemNonInventoryMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemnoninventorymod).","operationId":"updateItemNonInventory","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Widget"},"schema":{"not":{"anyOf":[{"required":["sales_or_purchase_mod","sales_and_purchase_mod"]}]},"properties":{"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"force_uom_change":{"description":"By Default `force_uom_change` is false. However, in item Mod requests, you need to set the `force_uom_change` field to True if you are changing the UOM set and the base unit of the new set doesn’t match the base unit of the UOM set currently assigned to the item. This does the same thing as the user accepting the warning prompt in the UI.","type":"boolean"},"include_ret_element":{"items":{"enum":["BarCodeValue","ClassRef","DataExtRet","EditSequence","ExternalGUID","FullName","IsActive","IsTaxIncluded","ListID","ManufacturerPartNumber","Name","OwnerID","ParentRef","SalesAndPurchase","SalesOrPurchase","SalesTaxCodeRef","Sublevel","TimeCreated","TimeModified","TxnID","TxnNumber","UnitOfMeasureSetRef"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_and_purchase_mod":{"description":"A `sales_and_purchase` aggregate is used for items that are meant to be both purchased and sold, such as an “other charge” item that is reimbursable.\n\nChoose at most one of: `sales_or_purchase_mod`, or `sales_and_purchase_mod`.","properties":{"apply_expense_account_ref_to_existing_txns":{"description":"Used to support changing the `account_ref` in the Mod request. When you do this, the QuickBooks UI normally displays a prompt asking whether the change should apply to existing transactions or not. Specifying False basically dismisses this with a “No” answer; specifying True dismisses it with a “Yes” answer and then changes the existing transactions that use the item with that `account_ref`.","type":"boolean"},"apply_income_account_ref_to_existing_txns":{"description":"Used to support changing the `account_ref` in the Mod request. When you do this, the QuickBooks UI normally displays a prompt asking whether the change should apply to existing transactions or not. Specifying False basically dismisses this with a “No” answer; specifying True dismisses it with a “Yes” answer and then changes the existing transactions that use the item with that `account_ref`.","type":"boolean"},"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"sales_or_purchase_mod":{"description":"A `sales_or_purchase` aggregate is used for items that are meant to be either purchased or sold, but not both. For example, a `sales_or_purchase` aggregate would be used for a non-inventory item that is purchased but not sold, or for a service item that is sold but not purchased.\n\nChoose at most one of: `sales_or_purchase_mod`, or `sales_and_purchase_mod`.","not":{"anyOf":[{"required":["price","price_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"apply_account_ref_to_existing_txns":{"description":"Used to support changing the `account_ref` in the Mod request. When you do this, the QuickBooks UI normally displays a prompt asking whether the change should apply to existing transactions or not. Specifying False basically dismisses this with a “No” answer; specifying True dismisses it with a “Yes” answer and then changes the existing transactions that use the item with that `account_ref`.","type":"boolean"},"desc":{"description":"A descriptive text field.","type":"string"},"price":{"description":"The purchase price or sales price of this item.\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"},"price_percent":{"description":"The price expressed as a percent. (For example, an auto shop that calculates the cost of labor as a percentage of the cost of parts might have a service item called “Labor” that uses `price_percent` instead of Price.)\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateItemNonInventory_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update item non inventory","tags":["Item Non Inventories"]}},"/connections/{connection_id}/matches":{"post":{"description":"Finds the records in the connection's company file a name could mean, ranked, from QuBe Sync's index of the file's names (the connection's `name_index`). QuickBooks itself only looks a name up exactly, or by \"contains\" on one list at a time. A match also ignores case, accents, punctuation, company suffixes such as Inc and LLC, spacing and word order, ranks near matches, and can compare an account number, email, phone, city and postal code. It's answered at once, from the index as it stands: `index.as_of` says how current that is.\n\n`match` is the first tier that applies: `exact`, `strong`, `candidates` or `none` (see the response). Use an `exact` match as it is, and confirm anything else with a person, or with what your app knows. A strong match is likely, not certain: `Acme Inc` and `Acme LLC` are strong for each other. Inactive records are matched too, with `is_active: false`.\n\nNumbers in names count: `Subway #1235` is never offered for `Subway #1234`, and `Subway Store 1234` finds `Subway #1234`. In a file of near-identical names, such as numbered locations, `candidates_total` says how many records qualified: when that's more than a person can choose from, ask for what tells them apart (the number, a city, a postal code, an account number) and match again with it. `exact_only` answers only `exact` or `none`, and `min_score` moves the candidate threshold for one call.\n\nMatch a record once. When it's confirmed, keep its `list_id` on your own record and refer to it by that from then on (`customer_ref: {list_id}`): a `list_id` survives renames. Match again only when a stored `list_id` stops working, because the record was deleted or merged.\n\nOnly `realtime` and `simulated` connections can match (422 `matching_requires_realtime`). The first match on a connection starts building its index, and until it's in every match is refused with 409 `name_index_building`. To have it ready ahead of time, and be told when it is, opt in with `POST /connections/{connection_id}/name-index` and a `webhook_url`. Every match counts as a use: an index is kept current while it was used in the last 7 days, and deleted after 30 days unused.\n\nSend the names in the JSON body: a match in the query string is refused, since URLs end up in logs. QuBe Sync doesn't log them either. A match changes nothing, so it takes no `Idempotency-Key`.","operationId":"matchRecords","parameters":[{"description":"The connection to act on.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"examples":{"a_customer":{"summary":"A customer, with its email","value":{"fields":{"email":"ap@acme.example"},"kind":"customer","name":"ACME, Inc."}},"a_job":{"summary":"A job under a customer","value":{"kind":"customer","name":"Kitchen","parent":"Smith"}},"a_store":{"summary":"A numbered location, with its city","value":{"fields":{"city":"Austin"},"kind":"customer","name":"Subway Store 1234"}},"any_name":{"summary":"Any customer, vendor, employee or other name","value":{"kind":"entity","name":"Riverbend Electric"}},"by_account_number":{"summary":"By your own id, kept in the account number","value":{"fields":{"account_number":"crm-1001"},"kind":"customer","name":"ACME, Inc."}},"exact_only":{"summary":"Only an exact match","value":{"exact_only":true,"kind":"item","name":"Consulting"}}},"schema":{"additionalProperties":false,"properties":{"exact_only":{"default":false,"description":"`true` answers only `exact` or `none`: the one record with this full name, as QuickBooks compares names, or nothing. Never a fuzzy match, so its answer can be used without asking. `fields` are ignored.","nullable":true,"type":"boolean"},"fields":{"additionalProperties":false,"description":"For customers, vendors, employees and other names (`customer`, `vendor`, `employee`, `other_name` and `entity`): what else your app knows about the record. The same `account_number` makes a strong match whatever the name. The same `email`, `phone` or `postal_code`, with a name at least 0.4 alike, makes a strong match. Each one in common is a reason and ranks a candidate higher; `company_name` and `city` do only that. An email's or account number's case doesn't count, nor a phone's punctuation, country code or extension, nor a postal code's spaces or a US ZIP+4's last four digits. The `city` and `postal_code` are compared with the record's billing address (a vendor's, employee's or other name's own address).","nullable":true,"properties":{"account_number":{"description":"The record's account number in QuickBooks. An app that creates the records can set it to its own id, and match on it later, if the company doesn't use the field for something else.","maxLength":255,"nullable":true,"type":"string"},"city":{"maxLength":255,"nullable":true,"type":"string"},"company_name":{"description":"Compared once punctuation and suffixes are set aside. Not for `employee`: QuickBooks employees have no company name.","maxLength":255,"nullable":true,"type":"string"},"email":{"maxLength":1023,"nullable":true,"type":"string"},"phone":{"maxLength":50,"nullable":true,"type":"string"},"postal_code":{"maxLength":50,"nullable":true,"type":"string"}},"type":"object"},"kind":{"description":"Which lists to look in. `entity` is customers, vendors, employees and other names together, which share one name space in QuickBooks; `item` is every item type. Any other kind is its own list.","enum":["customer","vendor","employee","other_name","entity","item","account","class","standard_terms","date_driven_terms","sales_tax_code","payment_method","ship_method","price_level","customer_type","vendor_type","job_type","sales_rep","customer_msg"],"type":"string"},"min_score":{"description":"This call's candidate threshold, in place of 0.44: raise it to list only close names, lower it (down to 0.3, the least alike a match reads) to list more. A record that's a candidate for another reason (two letters swapped, or strong but not alone) stays one, and `exact` and `strong` don't change. Not taken with `exact_only: true`.","maximum":1.0,"minimum":0.3,"nullable":true,"type":"number"},"name":{"description":"The name your app has for the record: its own name, without its parent's when you send `parent`. Without a `parent`, a full name such as `Smith:Kitchen` is matched exactly too. Its words with a digit (a store, unit or job number, such as `1234` in `Subway #1234`) must agree with a record's, leading zeros aside.","example":"ACME, Inc.","maxLength":255,"minLength":1,"type":"string"},"parent":{"description":"For a job, a sub-item, a subaccount or the like: its parent's full name or ListID, so only that parent's children are matched. Without one, children match on their own name too, with a reason naming the parent. Taken for `customer`, `entity`, `item`, `account`, `class`, `customer_type`, `vendor_type` and `job_type`. A parent the index doesn't hold matches nothing.","example":"Smith","maxLength":255,"nullable":true,"type":"string"}},"required":["kind","name"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"examples":{"candidates":{"summary":"Candidates","value":{"candidates":[{"full_name":"Acme Inc","is_active":true,"list":"customer","list_id":"80000011-1712345678","reasons":["same after removing punctuation and suffixes"],"score":1.0},{"full_name":"Acme LLC","is_active":false,"list":"customer","list_id":"80000012-1712345678","reasons":["same after removing punctuation and suffixes"],"score":1.0}],"candidates_total":2,"candidates_total_complete":true,"index":{"as_of":"2026-10-11T14:02:10Z","state":"ready"},"match":"candidates","record":null}},"exact":{"summary":"An exact match","value":{"candidates":[],"candidates_total":0,"candidates_total_complete":true,"index":{"as_of":"2026-10-11T14:02:10Z","state":"ready"},"match":"exact","record":{"full_name":"Smith:Kitchen","is_active":true,"list":"customer","list_id":"80000027-1712345678","reasons":["same name"],"score":1.0}}},"strong":{"summary":"A strong match, by its number","value":{"candidates":[],"candidates_total":0,"candidates_total_complete":true,"index":{"as_of":"2026-10-11T14:02:10Z","state":"ready"},"match":"strong","record":{"full_name":"Subway #1234","is_active":true,"list":"customer","list_id":"80000042-1712345678","reasons":["similar name","same number"],"score":0.71}}}},"schema":{"$ref":"#/components/schemas/Match"}}},"description":"The answer, from the index as it stands."},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"content":{"application/json":{"example":{"errors":{"code":"name_index_building","detail":"This call started building the connection's name index: QuBe Sync is reading the names in its lists from QuickBooks, a step at a time, the next times the Web Connector checks in. Matching answers once it's in. To be told when it is, POST /api/v2/connections/3f9c2a71-5d4e-4b8a-9c1f-7e2d6a5b8c90/name-index with a webhook_url: QuBe Sync sends name_index.ready there when the build finishes (or name_index.failed if it gives up). Or read the connection's name_index.state until it is ready."}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"`name_index_building`: the connection's name index isn't in yet. The first match, or opt-in, starts it; it takes a few Web Connector sessions. `detail` says whether this call started it, and how to be told when it's ready."},"422":{"content":{"application/json":{"examples":{"invalid":{"summary":"A body it can't take","value":{"errors":{"name":["can't be blank"]}}},"matching_requires_realtime":{"summary":"A standard connection","value":{"errors":{"code":"matching_requires_realtime","detail":"Matching needs a realtime or simulated connection, and this one is standard. Upgrade it to realtime from its page in the dashboard; in a sandbox app that costs nothing, since sandbox apps aren't billed. A simulated connection matches against the simulator's company file."}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"`matching_requires_realtime`: the connection is `standard`, which has no name index. Or the body was refused field by field: a `kind` that isn't one of the list, a blank `name`, a value that's too long, `fields` for a kind that isn't a customer, vendor, employee or other name, a field the kind's records don't have (`company_name` for an employee), a `parent` for a kind whose records have none, an `exact_only` that isn't `true` or `false`, a `min_score` outside 0.3 to 1.0 or sent with `exact_only: true`, a parameter it doesn't take, or the match sent in the query string."}},"security":[{"apiKey":[]}],"summary":"Match a name","tags":["Matching"]}},"/connections/{connection_id}/deposits":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listDeposits_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `DepositQueryRq`, from qbXML 2.0.\n\nThis request searches for deposits that match the supplied filters.\n\nIntuit's reference: [DepositQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/depositquery).","operationId":"listDeposits","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `txn_id`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["CashBackInfoRet","CurrencyRef","DataExtRet","DepositLineRet","DepositToAccountRef","DepositTotal","DepositTotalInHomeCurrency","EditSequence","ExchangeRate","ExternalGUID","Memo","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listDeposits_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List deposits","tags":["Deposits"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createDeposit_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `DepositAddRq`, from qbXML 2.0. The `deposit_add` wrapper from qbXML is also accepted.\n\nAfter you receive payments from customers (see ReceivePayment), you can use the DepositAdd request to either deposit each payment directly into a QuickBooks bank account or you can group payments together. You can also choose the method you prefer for depositing payments.\n\nIntuit's reference: [DepositAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/depositadd).","operationId":"createDeposit","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"deposit_line_add":[{"payment_txn_id":"1A2B-1700000000","payment_txn_line_id":"1A2C-1700000000"}],"deposit_to_account_ref":{"full_name":"Checking"},"memo":"Monthly service","txn_date":"2026-01-15"},"schema":{"properties":{"cash_back_info_add":{"description":"This aggregate is included if there is cash back from this deposit. `account_ref` indicates where the cash back Amount is going (for example, into a petty cash account).","properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"memo":{"description":"Additional information.","type":"string"}},"required":["account_ref"],"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"deposit_line_add":{"items":{"not":{"anyOf":[{"required":["payment_txn_id","entity_ref"]},{"required":["payment_txn_id","account_ref"]},{"required":["payment_txn_id","memo"]},{"required":["payment_txn_id","check_number"]},{"required":["payment_txn_id","payment_method_ref"]},{"required":["payment_txn_id","class_ref"]},{"required":["payment_txn_id","amount"]},{"required":["payment_txn_line_id","entity_ref"]},{"required":["payment_txn_line_id","account_ref"]},{"required":["payment_txn_line_id","memo"]},{"required":["payment_txn_line_id","check_number"]},{"required":["payment_txn_line_id","payment_method_ref"]},{"required":["payment_txn_line_id","class_ref"]},{"required":["payment_txn_line_id","amount"]},{"required":["override_memo","entity_ref"]},{"required":["override_memo","account_ref"]},{"required":["override_memo","memo"]},{"required":["override_memo","check_number"]},{"required":["override_memo","payment_method_ref"]},{"required":["override_memo","class_ref"]},{"required":["override_memo","amount"]},{"required":["override_check_number","entity_ref"]},{"required":["override_check_number","account_ref"]},{"required":["override_check_number","memo"]},{"required":["override_check_number","check_number"]},{"required":["override_check_number","payment_method_ref"]},{"required":["override_check_number","class_ref"]},{"required":["override_check_number","amount"]},{"required":["override_class_ref","entity_ref"]},{"required":["override_class_ref","account_ref"]},{"required":["override_class_ref","memo"]},{"required":["override_class_ref","check_number"]},{"required":["override_class_ref","payment_method_ref"]},{"required":["override_class_ref","class_ref"]},{"required":["override_class_ref","amount"]},{"properties":{"account_ref":false,"amount":false,"check_number":false,"class_ref":false,"entity_ref":false,"memo":false,"override_check_number":false,"override_class_ref":false,"override_memo":false,"payment_method_ref":false,"payment_txn_id":false,"payment_txn_line_id":false}}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","type":"number"},"check_number":{"description":"The check number of a check that a QuickBooks user writes or receives from someone else.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In JournalCreditLine and JournalDebitLine messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","type":"string"},"override_check_number":{"description":"Deposit line check number.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","type":"string"},"override_class_ref":{"description":"Deposit line class reference.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_memo":{"description":"Depost line memo additional information.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"payment_txn_id":{"description":"For the `payment_txn_id`, use either of these two values:A `txn_id` value exactly as it is returned by the ReceivePaymentToDepositQuery request, or A `txn_id` value exactly as it is returned in a ReceivePaymentAdd response.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","type":"string"},"payment_txn_line_id":{"description":"For the `payment_txn_line_id`, use a `txn_line_id` value exactly as it has been returned by the ReceivePaymentToDepositQuery request. If you don’t include a `payment_txn_line_id` and include a `payment_txn_id` for a transaction that includes payment lines, only the first payment line from that transaction will be deposited.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","type":"string"}},"type":"object"},"type":"array"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["CashBackInfoRet","CurrencyRef","DataExtRet","DepositLineRet","DepositToAccountRef","DepositTotal","DepositTotalInHomeCurrency","EditSequence","ExchangeRate","ExternalGUID","ListID","Memo","OwnerID","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"}},"required":["deposit_to_account_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createDeposit_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create deposit","tags":["Deposits"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateDeposit_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `DepositModRq`, from qbXML 7.0. The `deposit_mod` wrapper from qbXML is also accepted.\n\nModifies an existing deposit.\n\nIntuit's reference: [DepositMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/depositmod).","operationId":"updateDeposit","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","memo":"Monthly service","txn_date":"2026-01-15","txn_id":"1A2B-1700000000"},"schema":{"properties":{"cash_back_info_mod":{"description":"This aggregate is included if there is cash back from this deposit. `account_ref` indicates where the cash back Amount is going (for example, into a petty cash account).","properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"memo":{"description":"Additional information.","type":"string"}},"type":"object"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"deposit_line_mod":{"items":{"not":{"anyOf":[{"required":["payment_txn_id","entity_ref"]},{"required":["payment_txn_id","account_ref"]},{"required":["payment_txn_id","memo"]},{"required":["payment_txn_id","check_number"]},{"required":["payment_txn_id","payment_method_ref"]},{"required":["payment_txn_id","class_ref"]},{"required":["payment_txn_id","amount"]},{"required":["payment_txn_line_id","entity_ref"]},{"required":["payment_txn_line_id","account_ref"]},{"required":["payment_txn_line_id","memo"]},{"required":["payment_txn_line_id","check_number"]},{"required":["payment_txn_line_id","payment_method_ref"]},{"required":["payment_txn_line_id","class_ref"]},{"required":["payment_txn_line_id","amount"]},{"required":["override_memo","entity_ref"]},{"required":["override_memo","account_ref"]},{"required":["override_memo","memo"]},{"required":["override_memo","check_number"]},{"required":["override_memo","payment_method_ref"]},{"required":["override_memo","class_ref"]},{"required":["override_memo","amount"]},{"required":["override_check_number","entity_ref"]},{"required":["override_check_number","account_ref"]},{"required":["override_check_number","memo"]},{"required":["override_check_number","check_number"]},{"required":["override_check_number","payment_method_ref"]},{"required":["override_check_number","class_ref"]},{"required":["override_check_number","amount"]},{"required":["override_class_ref","entity_ref"]},{"required":["override_class_ref","account_ref"]},{"required":["override_class_ref","memo"]},{"required":["override_class_ref","check_number"]},{"required":["override_class_ref","payment_method_ref"]},{"required":["override_class_ref","class_ref"]},{"required":["override_class_ref","amount"]},{"properties":{"account_ref":false,"amount":false,"check_number":false,"class_ref":false,"entity_ref":false,"memo":false,"override_check_number":false,"override_class_ref":false,"override_memo":false,"payment_method_ref":false,"payment_txn_id":false,"payment_txn_line_id":false}}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","type":"number"},"check_number":{"description":"The check number of a check that a QuickBooks user writes or receives from someone else.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In JournalCreditLine and JournalDebitLine messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","type":"string"},"override_check_number":{"description":"Deposit line check number.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","type":"string"},"override_class_ref":{"description":"Deposit line class reference.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_memo":{"description":"Depost line memo additional information.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"payment_txn_id":{"description":"For the `payment_txn_id`, use either of these two values:A `txn_id` value exactly as it is returned by the ReceivePaymentToDepositQuery request, or A `txn_id` value exactly as it is returned in a ReceivePaymentAdd response.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","type":"string"},"payment_txn_line_id":{"description":"For the `payment_txn_line_id`, use a `txn_line_id` value exactly as it has been returned by the ReceivePaymentToDepositQuery request. If you don’t include a `payment_txn_line_id` and include a `payment_txn_id` for a transaction that includes payment lines, only the first payment line from that transaction will be deposited.\n\nChoose exactly one of: the set (`override_check_number`, `override_class_ref`, `override_memo`, `payment_txn_id`, `payment_txn_line_id`), or the set (`account_ref`, `amount`, `check_number`, `class_ref`, `entity_ref`, `memo`, `payment_method_ref`). Members of a set combine with each other, not with the other choices.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"include_ret_element":{"items":{"enum":["CashBackInfoRet","CurrencyRef","DataExtRet","DepositLineRet","DepositToAccountRef","DepositTotal","DepositTotalInHomeCurrency","EditSequence","ExchangeRate","ExternalGUID","ListID","Memo","OwnerID","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateDeposit_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update deposit","tags":["Deposits"]}},"/connections/{connection_id}/bill-payment-checks":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listBillPaymentChecks_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `BillPaymentCheckQueryRq`, from qbXML 2.0.\n\nProvides functionality found in the Find/Advanced Find window to find bill payments paid by check. The Find/Advanced Find windows can be reached by clicking the Find button on the main QuickBooks menubar, by selecting Edit->Find, or simply by using the shortcut CTRL-F. Notice that you can use the `meta_data` attribute inside the query tag if you want only a count of the bill payments that will be returned from the query.\n\nIf you know the bill payment transaction ID or reference number, you could use these, or search by transaction date, or search by the date where the bill was last modified.\n\nIf you need additional filters, you can use the entity filter to search for bills from a specific vendor or vendor sub (using the `list_id_with_children` or `full_name_with_children` tags). You can also search for bills entered against a particular account (the `ap_account_ref` specified in the originating BillAdd request). You can specify all subaccounts by using the various \\*WithChildren tags. For example, to find all bills entered against Checking where you have multiple checking accounts, you would use the `list_id_with_children` or `full_name_with_children` tags inside your `account_filter` tags. Finally, you can filter on the `ref_number` or `ref_number` range. Notice that all of these filters can be used together (ANDed) if desired.\n\nTo prevent the return of too much data, you can use `max_returned` to limit the total number of bills returned from the query. In addition, you can limit the type of data that is returned for each bill, using `include_ret_element`. Finally, you can specify whether each bill contains line items using the `include_line_items`, which by default is False (no line item data).\n\nIntuit's reference: [BillPaymentCheckQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/billpaymentcheckquery).","operationId":"listBillPaymentChecks","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["APAccountRef","Address","AddressBlock","Amount","AmountInHomeCurrency","AppliedToTxnRet","BankAccountRef","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExternalGUID","IsToBePrinted","Memo","PayeeEntityRef","RefNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listBillPaymentChecks_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List bill payment checks","tags":["Bill Payment Checks"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createBillPaymentCheck_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `BillPaymentCheckAddRq`, from qbXML 2.0. The `bill_payment_check_add` wrapper from qbXML is also accepted.\n\nA BillPaymentCheckAdd request must include either `payment_amount`, `set_credit`, or `discount_amount` (or more than one of these). If none of these three is included, the SDK will return an error.\n\nAlso, the `applied_to_txn_add` aggregate needs both the `txn_id` and the payment amount if you aren’t using the `set_credit` sub-aggregate or QuickBooks won’t have an amount to apply. If you are using the `set_credit` sub-aggregate, you’ll need to set the amount in the `applied_amount` field.\n\nBillPaymentCheckAdd provides the functionality found in the Pay Bills form in the QuickBooks UI. You can reach this form by selecting Retail->Pay Bills from the main QuickBooks menubar. BillPayment is described in detail in the chapter on handling receive payment and bill payment in the QB SDK Programmer’s Guide. Notice that the request requires one (but not more than one!) BillPaymentCheckAdd sub aggregate, which is provided to support the SDK macro feature in this request. (See the QB SDK Programmer’s Guide ([PDF](https://developer.intuit.com/app/developer/logged-in-content/QBSDK_ProGuide.pdf), 9.6 MB) for more information about macros.) Notice that you can supply only one of these sub aggregates in the request. If you want to pay multiple bills, you must issue a separate request for each bill pay.\n\nIf you are using more than one A/P account, make sure that the `ap_account_ref` in the BillPaymentCheckAdd matches the `ap_account_ref` that was used when the Bill was originally added. That is, the Bill was entered in a particular account payable: use that same account payable when you pay the bill using this request.\n\nNotice that although you can set the `is_to_be_printed` flag, you can’t print checks using the SDK.\n\nNotice that you set the check number, if desired, using the `ref_number` tags.\n\nIntuit's reference: [BillPaymentCheckAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/billpaymentcheckadd).","operationId":"createBillPaymentCheck","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"applied_to_txn_add":[{"txn_id":"1A2B-1700000000"}],"bank_account_ref":{"full_name":"Checking"},"is_to_be_printed":true,"memo":"Monthly service","payee_entity_ref":{"full_name":"Northwind Supplies"},"txn_date":"2026-01-15"},"schema":{"oneOf":[{"properties":{"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"}},"required":["is_to_be_printed"],"title":"IsToBePrinted","type":"object"},{"properties":{"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["ref_number"],"title":"RefNumber","type":"object"}],"properties":{"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"applied_to_txn_add":{"items":{"properties":{"discount_account_ref":{"description":"Refers to the account where this discount is tracked. In a request, if a `discount_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"discount_amount":{"description":"Reduces the receivable amount.","type":"number"},"discount_class_ref":{"description":"Class reference used in the Discount object","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"payment_amount":{"description":"Represents the amount assigned to a particular receivable. The sum of all `payment_amount` elements in any given receive payment transaction must not be greater than TotalAmount.","type":"number"},"set_credit":{"items":{"properties":{"applied_amount":{"description":"Amount of a credit that is applied to a customer’s invoice, or amount of a payment that is applied to a particular bill or vendor credit.","type":"number"},"credit_txn_id":{"description":"The ID of the credit memo that you are applying to this invoice or bill.","type":"string"},"override":{"description":"Option to override credit","type":"boolean"},"txn_line_id":{"type":"string"}},"required":["applied_amount","credit_txn_id"],"type":"object"},"type":"array"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"required":["amount","txn_line_id"],"type":"object"},"type":"array"}},"required":["txn_id"],"type":"object"},"type":"array"},"bank_account_ref":{"description":"Refers to the account from which the funds are being drawn for this check, for example, Checking or Savings. If a `bank_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["APAccountRef","Address","AddressBlock","Amount","AmountInHomeCurrency","AppliedToTxnRet","BankAccountRef","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExternalGUID","IsToBePrinted","ListID","Memo","OwnerID","PayeeEntityRef","RefNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"}},"required":["applied_to_txn_add","bank_account_ref","payee_entity_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createBillPaymentCheck_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create bill payment check","tags":["Bill Payment Checks"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateBillPaymentCheck_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `BillPaymentCheckModRq`, from qbXML 6.0. The `bill_payment_check_mod` wrapper from qbXML is also accepted.\n\nGenerally, this is what you can do with BillPaymentCheckMod:\n\nNote: the `applied_to_txn_mod` aggregate needs both the `txn_id` and the payment amount if you aren’t using the `set_credit` sub-aggregate or QuickBooks won’t have an amount to apply. If you are using the `set_credit` sub-aggregate, you’ll need to set the amount in the `applied_amount` field.\n\n- Modify or clear the `ref_number` or Memo.\n- Modify (not clear) the `txn_date`.\n- Modify (not clear) the `bank_account_ref`\n- Modify (not clear) the `is_to_be_printed` flag.\n- For a bill payment check transaction that has been applied to several existing bills, redistribute the payment amounts applied to the bills.\n- Change the discount amount applied to particular bill.\n- You CANNOT change the credit amount applied to a particular bill. NOT SUPPORTED!\n- Apply the payment amount to a different bill. Apply a discount, and a credit. The existing distribution is cleared, except for any credit that may have been applied.\n- Use a BillPaymentCheckMod to simply apply an additional credit to a bill. Additional payment amount is available as a credit\n\nOther things you need to know:\n\nWhen a BillPaymentCheckMod request is processed, if the `applied_to_txn_mod` aggregate is specified, then the existing payments and discounts will be cleared (but not the credits). The original payment amount will be redistributed according to the `applied_to_txn_mod` aggregates (0 or more) contained in the BillPaymentCheckMod request. The `applied_to_txn_mod` aggregate may specify discounts, just as does the AppliedToTxnAdd aggregate. These discounts will replace any original discounts. Credits may also be specified. But if so, then the credits will be additional credits, and won’t affect any credits that were originally applied. The existing payments and discounts will be cleared only if `applied_to_txn_mod` is specified in the request. This will allow clients to modify other information without modifying the distribution of the payment.\n\nIntuit's reference, linked below, has the rest of these notes.\n\nIntuit's reference: [BillPaymentCheckMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/billpaymentcheckmod).","operationId":"updateBillPaymentCheck","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"amount":250.0,"edit_sequence":"1700000000","memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","txn_id":"1A2B-1700000000"},"schema":{"not":{"anyOf":[{"required":["is_to_be_printed","ref_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"applied_to_txn_mod":{"items":{"properties":{"discount_account_ref":{"description":"Refers to the account where this discount is tracked. In a request, if a `discount_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"discount_amount":{"description":"Reduces the receivable amount.","type":"number"},"discount_class_ref":{"description":"Class reference used in the Discount object","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"payment_amount":{"description":"Represents the amount assigned to a particular receivable. The sum of all `payment_amount` elements in any given receive payment transaction must not be greater than TotalAmount.","type":"number"},"set_credit":{"items":{"properties":{"applied_amount":{"description":"Amount of a credit that is applied to a customer’s invoice, or amount of a payment that is applied to a particular bill or vendor credit.","type":"number"},"credit_txn_id":{"description":"The ID of the credit memo that you are applying to this invoice or bill.","type":"string"},"override":{"description":"Option to override credit","type":"boolean"},"txn_line_id":{"type":"string"}},"required":["applied_amount","credit_txn_id"],"type":"object"},"type":"array"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"type":"object"},"type":"array"},"bank_account_ref":{"description":"Refers to the account from which the funds are being drawn for this check, for example, Checking or Savings. If a `bank_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"include_ret_element":{"items":{"enum":["APAccountRef","Address","AddressBlock","Amount","AmountInHomeCurrency","AppliedToTxnRet","BankAccountRef","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExternalGUID","IsToBePrinted","ListID","Memo","OwnerID","PayeeEntityRef","RefNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.\n\nChoose at most one of: `is_to_be_printed`, or `ref_number`.","type":"boolean"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `is_to_be_printed`, or `ref_number`.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateBillPaymentCheck_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update bill payment check","tags":["Bill Payment Checks"]}},"/connections/{connection_id}/transactions":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listTransactions_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `TransactionQueryRq`, from qbXML 4.0.\n\nTransactionQuery is a generic transaction query that provides functionality (e.g. filters) similar to the Advanced Find window in the QuickBooks UI. It allows you to search for transactions across different transaction types. In contrast to the other transaction-specific queries, the TransactionQuery only returns data common to all transactions, such as `txn_id`, type, dates, accountRef, and so on. This query does return condensed transactions.\n\nAccordingly, if additional and more transaction-specific data is required, a subsequent call to the desired query can be used to get that transaction-specific data. For example, the TransactionQuery can be used to present all transactions in a certain date range, then the user can select a particular transaction, say an invoice transaction. In response to this choice, you could do an InvoiceQuery to pull up all of the invoice data, similar to QuickZoom in the QuickBooks UI.\n\n**Important:** You should be aware that permissions are obeyed in this query. So, if you set the transaction type filter to “All” (or if you don’t set it at all), the query will be searching only those transaction types that are permissible types for the user currently logged in. Accordingly, if instead of “all,” you specify a transaction type that the currently logged in user isn’t permitted to access, you will get a runtime error, even if other permissible transaction types were specified as well.\n\nFinally, the transaction query is subject to sensitive data access level restrictions and payroll subscription status.\n\nIntuit's reference: [TransactionQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/transactionquery).","operationId":"listTransactions","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `txn_id`, or the set (`currency_filter`, `max_returned`, `ref_number`, `ref_number_case_sensitive`, `ref_number_filter`, `ref_number_range_filter`, `transaction_account_filter`, `transaction_class_filter`, `transaction_date_range_filter`, `transaction_detail_level_filter`, `transaction_entity_filter`, `transaction_item_filter`, `transaction_modified_date_range_filter`, `transaction_paid_status_filter`, `transaction_posting_status_filter`, `transaction_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AccountRef","Amount","AmountInHomeCurrency","CurrencyRef","EntityRef","ExchangeRate","Memo","RefNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnLineID","TxnType"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or the set (`currency_filter`, `max_returned`, `ref_number`, `ref_number_case_sensitive`, `ref_number_filter`, `ref_number_range_filter`, `transaction_account_filter`, `transaction_class_filter`, `transaction_date_range_filter`, `transaction_detail_level_filter`, `transaction_entity_filter`, `transaction_item_filter`, `transaction_modified_date_range_filter`, `transaction_paid_status_filter`, `transaction_posting_status_filter`, `transaction_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or the set (`currency_filter`, `max_returned`, `ref_number`, `ref_number_case_sensitive`, `ref_number_filter`, `ref_number_range_filter`, `transaction_account_filter`, `transaction_class_filter`, `transaction_date_range_filter`, `transaction_detail_level_filter`, `transaction_entity_filter`, `transaction_item_filter`, `transaction_modified_date_range_filter`, `transaction_paid_status_filter`, `transaction_posting_status_filter`, `transaction_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or the set (`currency_filter`, `max_returned`, `ref_number`, `ref_number_case_sensitive`, `ref_number_filter`, `ref_number_range_filter`, `transaction_account_filter`, `transaction_class_filter`, `transaction_date_range_filter`, `transaction_detail_level_filter`, `transaction_entity_filter`, `transaction_item_filter`, `transaction_modified_date_range_filter`, `transaction_paid_status_filter`, `transaction_posting_status_filter`, `transaction_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or the set (`currency_filter`, `max_returned`, `ref_number`, `ref_number_case_sensitive`, `ref_number_filter`, `ref_number_range_filter`, `transaction_account_filter`, `transaction_class_filter`, `transaction_date_range_filter`, `transaction_detail_level_filter`, `transaction_entity_filter`, `transaction_item_filter`, `transaction_modified_date_range_filter`, `transaction_paid_status_filter`, `transaction_posting_status_filter`, `transaction_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or the set (`currency_filter`, `max_returned`, `ref_number`, `ref_number_case_sensitive`, `ref_number_filter`, `ref_number_range_filter`, `transaction_account_filter`, `transaction_class_filter`, `transaction_date_range_filter`, `transaction_detail_level_filter`, `transaction_entity_filter`, `transaction_item_filter`, `transaction_modified_date_range_filter`, `transaction_paid_status_filter`, `transaction_posting_status_filter`, `transaction_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters the transactions based on the `account_ref` in the transaction or transaction line using an account type filter or a specific `list_id`, or a `full_name`, or a `list_id_with_children`, or a `full_name_with_children`. To filter on transaction lines, you must specify the `transaction_detail_level_filter` with a value of either “All” or “AllExceptSummary”.\n\nChoose at most one of: `txn_id`, or the set (`currency_filter`, `max_returned`, `ref_number`, `ref_number_case_sensitive`, `ref_number_filter`, `ref_number_range_filter`, `transaction_account_filter`, `transaction_class_filter`, `transaction_date_range_filter`, `transaction_detail_level_filter`, `transaction_entity_filter`, `transaction_item_filter`, `transaction_modified_date_range_filter`, `transaction_paid_status_filter`, `transaction_posting_status_filter`, `transaction_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"transaction_account_filter","required":false,"schema":{"oneOf":[{"properties":{"account_type_filter":{"description":"Allows you to report on a specific account type.","enum":["APAndSalesTax","APOrCreditCard","ARAndAP","AccountsPayable","AccountsReceivable","AllowedFor1099","Asset","BalanceSheet","Bank","BankAndARAndAPAndUF","BankAndUF","CostOfSales","CreditCard","CurrentAsset","CurrentAssetAndExpense","CurrentLiability","Equity","EquityAndIncomeAndExpense","ExpenseAndOtherExpense","FixedAsset","IncomeAndExpense","IncomeAndOtherIncome","Liability","LiabilityAndEquity","LongTermLiability","NonPosting","OrdinaryExpense","OrdinaryIncome","OrdinaryIncomeAndCOGS","OrdinaryIncomeAndExpense","OtherAsset","OtherCurrentAsset","OtherCurrentLiability","OtherExpense","OtherIncome","OtherIncomeOrExpense"],"type":"string"}},"required":["account_type_filter"],"title":"AccountTypeFilter","type":"object"},{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters the transactions based on the ClassRef in the transaction or transaction line by using a specific `list_id`, or a `full_name`, or a `list_id_with_children`, or a `full_name_with_children`. To filter on transaction lines, you must specify the `transaction_detail_level_filter` with a value of either “All” or “AllExceptSummary”.\n\nChoose at most one of: `txn_id`, or the set (`currency_filter`, `max_returned`, `ref_number`, `ref_number_case_sensitive`, `ref_number_filter`, `ref_number_range_filter`, `transaction_account_filter`, `transaction_class_filter`, `transaction_date_range_filter`, `transaction_detail_level_filter`, `transaction_entity_filter`, `transaction_item_filter`, `transaction_modified_date_range_filter`, `transaction_paid_status_filter`, `transaction_posting_status_filter`, `transaction_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"transaction_class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters the transactions based on the transaction’s date either by specifying a “from” and/or “to” date, or by using a `date_macro`.\n\nChoose at most one of: `txn_id`, or the set (`currency_filter`, `max_returned`, `ref_number`, `ref_number_case_sensitive`, `ref_number_filter`, `ref_number_range_filter`, `transaction_account_filter`, `transaction_class_filter`, `transaction_date_range_filter`, `transaction_detail_level_filter`, `transaction_entity_filter`, `transaction_item_filter`, `transaction_modified_date_range_filter`, `transaction_paid_status_filter`, `transaction_posting_status_filter`, `transaction_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"transaction_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"Allows you to specify the detail level of the query results. You can specify all, summary only (the default), or all except summary. Summary only refers to the transaction as a whole, whereas all except summary refers to the transaction lines.\n\nChoose at most one of: `txn_id`, or the set (`currency_filter`, `max_returned`, `ref_number`, `ref_number_case_sensitive`, `ref_number_filter`, `ref_number_range_filter`, `transaction_account_filter`, `transaction_class_filter`, `transaction_date_range_filter`, `transaction_detail_level_filter`, `transaction_entity_filter`, `transaction_item_filter`, `transaction_modified_date_range_filter`, `transaction_paid_status_filter`, `transaction_posting_status_filter`, `transaction_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"transaction_detail_level_filter","required":false,"schema":{"enum":["All","AllExceptSummary","SummaryOnly"],"type":"string"}},{"description":"Filters the transactions based on the `entity_ref` used in the transaction or transaction line by specifying an entity type filter, a `list_id`, a `full_name`, a `list_id_with_children`, or a `full_name_with_children`. If you want to filter on transaction lines you must specify the `transaction_detail_level_filter` with a value of either “All” or “AllExceptSummary”.\n\nChoose at most one of: `txn_id`, or the set (`currency_filter`, `max_returned`, `ref_number`, `ref_number_case_sensitive`, `ref_number_filter`, `ref_number_range_filter`, `transaction_account_filter`, `transaction_class_filter`, `transaction_date_range_filter`, `transaction_detail_level_filter`, `transaction_entity_filter`, `transaction_item_filter`, `transaction_modified_date_range_filter`, `transaction_paid_status_filter`, `transaction_posting_status_filter`, `transaction_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"transaction_entity_filter","required":false,"schema":{"oneOf":[{"properties":{"entity_type_filter":{"description":"Allows you to report on a specific name type.","enum":["Customer","Employee","OtherName","Vendor"],"type":"string"}},"required":["entity_type_filter"],"title":"EntityTypeFilter","type":"object"},{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters the transactions based on the ItemRef used in the transaction line using an item type filter, or a specific `list_id`, or a `full_name`, or a `list_id_with_children`, or a `full_name_with_children`. To filter on transaction lines, you must specify the `transaction_detail_level_filter` with a value of either “All” or “AllExceptSummary”.\n\nChoose at most one of: `txn_id`, or the set (`currency_filter`, `max_returned`, `ref_number`, `ref_number_case_sensitive`, `ref_number_filter`, `ref_number_range_filter`, `transaction_account_filter`, `transaction_class_filter`, `transaction_date_range_filter`, `transaction_detail_level_filter`, `transaction_entity_filter`, `transaction_item_filter`, `transaction_modified_date_range_filter`, `transaction_paid_status_filter`, `transaction_posting_status_filter`, `transaction_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"transaction_item_filter","required":false,"schema":{"oneOf":[{"properties":{"item_type_filter":{"description":"Allows you to report on a specific item type.","enum":["AllExceptFixedAsset","Assembly","Discount","FixedAsset","Inventory","InventoryAndAssembly","NonInventory","OtherCharge","Payment","Sales","SalesTax","Service"],"type":"string"}},"required":["item_type_filter"],"title":"ItemTypeFilter","type":"object"},{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters the transactions based on the transaction’s modified datetime, either by specifying a “from” and/or “to” date or by using a `date_macro`.\n\nChoose at most one of: `txn_id`, or the set (`currency_filter`, `max_returned`, `ref_number`, `ref_number_case_sensitive`, `ref_number_filter`, `ref_number_range_filter`, `transaction_account_filter`, `transaction_class_filter`, `transaction_date_range_filter`, `transaction_detail_level_filter`, `transaction_entity_filter`, `transaction_item_filter`, `transaction_modified_date_range_filter`, `transaction_paid_status_filter`, `transaction_posting_status_filter`, `transaction_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"transaction_modified_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_modified_date":false,"to_modified_date":false}},"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"title":"FromModifiedDate + ToModifiedDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"This filter allows you to search for “open” transactions, i.e. transactions with a remaining balance (for example, credits not fully applied or invoices not fully paid). Valid values are closed, open, or either, which is the default.\n\nChoose at most one of: `txn_id`, or the set (`currency_filter`, `max_returned`, `ref_number`, `ref_number_case_sensitive`, `ref_number_filter`, `ref_number_range_filter`, `transaction_account_filter`, `transaction_class_filter`, `transaction_date_range_filter`, `transaction_detail_level_filter`, `transaction_entity_filter`, `transaction_item_filter`, `transaction_modified_date_range_filter`, `transaction_paid_status_filter`, `transaction_posting_status_filter`, `transaction_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"transaction_paid_status_filter","required":false,"schema":{"enum":["Closed","Either","Open"],"type":"string"}},{"description":"Allows you to filter transactions based on posting status. Valid values are posting, non-posting, or either. The default is “either.” (Posting status refers to whether QuickBooks records a transaction in one of your account registers.)\n\nChoose at most one of: `txn_id`, or the set (`currency_filter`, `max_returned`, `ref_number`, `ref_number_case_sensitive`, `ref_number_filter`, `ref_number_range_filter`, `transaction_account_filter`, `transaction_class_filter`, `transaction_date_range_filter`, `transaction_detail_level_filter`, `transaction_entity_filter`, `transaction_item_filter`, `transaction_modified_date_range_filter`, `transaction_paid_status_filter`, `transaction_posting_status_filter`, `transaction_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"transaction_posting_status_filter","required":false,"schema":{"enum":["Either","NonPosting","Posting"],"type":"string"}},{"description":"Filters the transactions based on the transaction’s type. You can specify one or more transaction types in the filter. Notice that TimeTracking transactions aren’t supported. If you set the transaction type filter to “All” (or if you don’t set it at all), the query will be searching only those transaction types that are permissible types for the user currently logged in.\n\nChoose at most one of: `txn_id`, or the set (`currency_filter`, `max_returned`, `ref_number`, `ref_number_case_sensitive`, `ref_number_filter`, `ref_number_range_filter`, `transaction_account_filter`, `transaction_class_filter`, `transaction_date_range_filter`, `transaction_detail_level_filter`, `transaction_entity_filter`, `transaction_item_filter`, `transaction_modified_date_range_filter`, `transaction_paid_status_filter`, `transaction_posting_status_filter`, `transaction_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"transaction_type_filter","required":false,"schema":{"properties":{"txn_type_filter":{"items":{"enum":["ARRefundCreditCard","All","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"},"type":"array"}},"required":["txn_type_filter"],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or the set (`currency_filter`, `max_returned`, `ref_number`, `ref_number_case_sensitive`, `ref_number_filter`, `ref_number_range_filter`, `transaction_account_filter`, `transaction_class_filter`, `transaction_date_range_filter`, `transaction_detail_level_filter`, `transaction_entity_filter`, `transaction_item_filter`, `transaction_modified_date_range_filter`, `transaction_paid_status_filter`, `transaction_posting_status_filter`, `transaction_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listTransactions_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List transactions","tags":["Transactions"]}},"/connections/{connection_id}/transfer-inventories":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listTransferInventories_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `TransferInventoryQueryRq`, from qbXML 10.0.\n\nIntuit's reference: [TransferInventoryQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/transferinventoryquery).","operationId":"listTransferInventories","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive`, `site_filter` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`), or `site_filter`. Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`), or `site_filter`. Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["EditSequence","ExternalGUID","FromInventorySiteRef","Memo","RefNumber","TimeCreated","TimeModified","ToInventorySiteRef","TransferInventoryLineRet","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`), or `site_filter`. Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`), or `site_filter`. Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`), or `site_filter`. Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`), or `site_filter`. Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`), or `site_filter`. Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`), or `site_filter`. Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Allows you to report on Sites.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`), or `site_filter`. Members of a set combine with each other, not with the other choices.","in":"query","name":"site_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`), or `site_filter`. Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`), or `site_filter`. Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listTransferInventories_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List transfer inventories","tags":["Transfer Inventories"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createTransferInventory_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `TransferInventoryAddRq`, from qbXML 10.0. The `transfer_inventory_add` wrapper from qbXML is also accepted.\n\nIntuit's reference: [TransferInventoryAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/transferinventoryadd).","operationId":"createTransferInventory","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"from_inventory_site_ref":{"full_name":"Main Warehouse"},"memo":"Monthly service","ref_number":"1001","to_inventory_site_ref":{"full_name":"Retail Store"},"transfer_inventory_line_add":[{"item_ref":{"full_name":"Widget"},"quantity_to_transfer":2}],"txn_date":"2026-01-15"},"schema":{"properties":{"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"from_inventory_site_ref":{"description":"Inventory site that transfer will be taken from.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["EditSequence","ExternalGUID","FromInventorySiteRef","ListID","Memo","OwnerID","RefNumber","TimeCreated","TimeModified","ToInventorySiteRef","TransferInventoryLineRet","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"to_inventory_site_ref":{"description":"Inventory site that transfer will be sent to.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"transfer_inventory_line_add":{"items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"from_inventory_site_location_ref":{"description":"Location within the inventory site that transfer will be taken from.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"quantity_to_transfer":{"description":"Quantity of items transferred.","type":"number"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"to_inventory_site_location_ref":{"description":"Location within the inventory site that transfer will be sent to.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"}},"required":["from_inventory_site_ref","to_inventory_site_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createTransferInventory_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create transfer inventory","tags":["Transfer Inventories"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateTransferInventory_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `TransferInventoryModRq`, from qbXML 10.0. The `transfer_inventory_mod` wrapper from qbXML is also accepted.\n\nIntuit's reference: [TransferInventoryMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/transferinventorymod).","operationId":"updateTransferInventory","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","txn_id":"1A2B-1700000000"},"schema":{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"from_inventory_site_ref":{"description":"Inventory site that transfer will be taken from.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["EditSequence","ExternalGUID","FromInventorySiteRef","ListID","Memo","OwnerID","RefNumber","TimeCreated","TimeModified","ToInventorySiteRef","TransferInventoryLineRet","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"to_inventory_site_ref":{"description":"Inventory site that transfer will be sent to.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"transfer_inventory_line_mod":{"items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"from_inventory_site_location_ref":{"description":"Location within the inventory site that transfer will be taken from.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"quantity_to_transfer":{"description":"Quantity of items transferred.","type":"number"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"to_inventory_site_location_ref":{"description":"Location within the inventory site that transfer will be sent to.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateTransferInventory_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update transfer inventory","tags":["Transfer Inventories"]}},"/connections/{connection_id}/sales-tax-codes":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listSalesTaxCodes_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SalesTaxCodeQueryRq`.\n\nQueries for the specified sales tax code or set of codes.\n\nIntuit's reference: [SalesTaxCodeQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/salestaxcodequery).","operationId":"listSalesTaxCodes","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["Desc","EditSequence","IsActive","IsTaxable","ItemPurchaseTaxRef","ItemSalesTaxRef","ListID","Name","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listSalesTaxCodes_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List sales tax codes","tags":["Sales Tax Codes"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createSalesTaxCode_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SalesTaxCodeAddRq`. The `sales_tax_code_add` wrapper from qbXML is also accepted.\n\nAdds a sales tax code. Each item on a sales form is assigned a sales-tax code that indicates whether the item is taxable or non-taxable, and why. Two general codes, which can be modified but not deleted, appear on the sales-tax code list by default:\n\n- Non-taxable (Name = NON; Desc = Non-Taxable; `is_taxable` = false)\n- Taxable (Name = TAX; Desc = Taxable; `is_taxable` = true)\n\nA sales-tax code can be deleted only if it is no longer associated with any customer, item, or transaction. If the “Do You Charge Sales Tax?” preference within QuickBooks is set to No, QuickBooks will assign the default non-taxable sales-tax code to all sales.\n\nIntuit's reference: [SalesTaxCodeAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/salestaxcodeadd).","operationId":"createSalesTaxCode","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"is_taxable":true,"name":"Tax"},"schema":{"properties":{"desc":{"description":"Desc gives a longer explanation of Name.","type":"string"},"include_ret_element":{"items":{"enum":["Desc","EditSequence","ExternalGUID","IsActive","IsTaxable","ItemPurchaseTaxRef","ItemSalesTaxRef","ListID","Name","OwnerID","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_taxable":{"description":"Indicates whether this sales-tax code is tracking taxable sales. For any particular sales-tax code, `is_taxable` can’t be modified once the sales-tax code has been used in a transaction. If the “Do You Charge Sales Tax?” preference is set to Yes within QuickBooks, the default value of `is_taxable` is true.","type":"boolean"},"item_purchase_tax_ref":{"description":"For future use with international versions of QuickBooks.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"name":{"description":"Short name that will appear on sales forms to identify the tax status of an item. The Desc element gives a longer explanation of Name. Name must be unique, and it isn’t case-sensitive.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["is_taxable","name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createSalesTaxCode_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create sales tax code","tags":["Sales Tax Codes"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateSalesTaxCode_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SalesTaxCodeModRq`, from qbXML 8.0. The `sales_tax_code_mod` wrapper from qbXML is also accepted.\n\nThis modifies the specified sales tax code, subject to a few limitations. You can’t use it to change a tax code’s `is_taxable` property after the code has been used in any transaction. For the default QuickBooks taxable (Tax) and exempt (Non) tax codes, you can’t use this request to change the `is_taxable` property at all, even before any transactions.\n\nIntuit's reference: [SalesTaxCodeMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/salestaxcodemod).","operationId":"updateSalesTaxCode","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Tax"},"schema":{"properties":{"desc":{"description":"Desc gives a longer explanation of Name.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"include_ret_element":{"items":{"enum":["Desc","EditSequence","ExternalGUID","IsActive","IsTaxable","ItemPurchaseTaxRef","ItemSalesTaxRef","ListID","Name","OwnerID","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_taxable":{"description":"Indicates whether this sales-tax code is tracking taxable sales. For any particular sales-tax code, `is_taxable` can’t be modified once the sales-tax code has been used in a transaction. If the “Do You Charge Sales Tax?” preference is set to Yes within QuickBooks, the default value of `is_taxable` is true.","type":"boolean"},"item_purchase_tax_ref":{"description":"For future use with international versions of QuickBooks.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Short name that will appear on sales forms to identify the tax status of an item. The Desc element gives a longer explanation of Name. Name must be unique, and it isn’t case-sensitive.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateSalesTaxCode_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update sales tax code","tags":["Sales Tax Codes"]}},"/connections/{connection_id}/bill-to-pays":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listBillToPays_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `BillToPayQueryRq`, from qbXML 2.0.\n\nThe BillToPayQuery request returns information about open bills and credits. You can use this information in subsequent BillPaymentCheck and BillPaymentCreditCard requests.\n\nIntuit's reference: [BillToPayQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/billtopayquery).","operationId":"listBillToPays","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","in":"query","name":"ap_account_ref","required":false,"schema":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},{"description":"Filters by the specified currency.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"The date on which payment is due.","in":"query","name":"due_date","required":false,"schema":{"format":"date","type":"string"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["BillToPay","CreditToApply"],"type":"string"},"type":"array"}},{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","in":"query","name":"payee_entity_ref","required":true,"schema":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listBillToPays_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List bill to pays","tags":["Bill To Pays"]}},"/workflow-templates/{key}/install":{"post":{"description":"Creates the template as a workflow in the authenticated app, together with the child templates its chart calls that the app does not have yet, in one request and one transaction: a refusal part-way through installs nothing. Answers 201 with the installed workflow and `installed`, every key this call created, parent first. When the app already has a workflow at the key, it is refused with 409 `key_taken` unless `replace` is true: then that workflow, and each child the app already has, gets the template's current chart the way `PUT /workflows/{key}` replaces one (the working copy changes; the name, description, published version and version history stay), the answer is 200, and `replaced` lists those keys. That makes a scripted install safe to repeat, and it is how a workflow takes a newer version of its template: a workflow's `template.status` says when there is one. `as` installs alongside an existing workflow instead, and `PUT /workflows/{key}` replaces it with a chart of your own. Refused with 422 `promotion_required` in a production app of an organization whose workflows change only by promotion.","parameters":[{"description":"The template's key (see GET /workflow-templates)","in":"path","name":"key","required":true,"schema":{"pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"as":{"description":"Install the template under this key instead of its own; `replace` then applies to this key. The child workflows keep their own keys, because the chart names them by those.","pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"},"notes":{"description":"A note recorded in the history beside each version `publish: true` creates. Ignored without it.","type":"string"},"publish":{"description":"true publishes every workflow this call created or replaced, each child before the workflows that call it. A child the app already had as an unpublished draft, and that `replace` did not replace, makes this fail with 422 `unpublished_references`. Without it, what is created is a draft, and what is replaced keeps its published version while its working copy changes.","type":"boolean"},"replace":{"default":false,"description":"true replaces the chart of a workflow the app already has at the key (or at `as`), and of each child workflow the template calls that the app already has, with the template's current chart, instead of answering 409 `key_taken` or leaving the child as it is. The same replacement as `PUT /workflows/{key}`: earlier versions are kept, and the published version stays live until `publish: true` publishes the new chart.","type":"boolean"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Workflow"},"installed":{"description":"The keys of every workflow this call created, the installed template first when it was created.","items":{"type":"string"},"type":"array"},"replaced":{"description":"The keys of every workflow `replace: true` gave the template's chart, the installed template first when it was replaced. Empty without `replace`.","items":{"type":"string"},"type":"array"}},"type":"object"}}},"description":"`replace: true` replaced the chart of the workflow the app already had at the key"},"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Workflow"},"installed":{"description":"The keys of every workflow this call created, the installed template first when it was created.","items":{"type":"string"},"type":"array"},"replaced":{"description":"The keys of every workflow `replace: true` gave the template's chart, the installed template first when it was replaced. Empty without `replace`.","items":{"type":"string"},"type":"array"}},"type":"object"}}},"description":"The template was installed under a key the app did not have"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No template with that key"},"409":{"description":"The app already has a workflow at that key (`key_taken`) and `replace` was not true"},"422":{"description":"The organization's promotion-only policy refused it, `replace` was not a boolean, or `publish: true` could not publish what was installed"}},"security":[{"apiKey":[]}],"summary":"Install a workflow template","tags":["Workflows"]}},"/connections/{connection_id}/transfers":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listTransfers_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `TransferQueryRq`, from qbXML 12.0.\n\nIntuit's reference: [TransferQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/transferquery).","operationId":"listTransfers","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["Amount","ClassRef","EditSequence","FromAccountBalance","Memo","TimeCreated","TimeModified","ToAccountBalance","TransferFromAccountRef","TransferToAccountRef","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or the set (`max_returned`, `modified_date_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or the set (`max_returned`, `modified_date_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or the set (`max_returned`, `modified_date_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or the set (`max_returned`, `modified_date_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listTransfers_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List transfers","tags":["Transfers"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createTransfer_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `TransferAddRq`, from qbXML 12.0. The `transfer_add` wrapper from qbXML is also accepted.\n\nIntuit's reference: [TransferAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/transferadd).","operationId":"createTransfer","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"amount":250.0,"memo":"Monthly service","transfer_from_account_ref":{"full_name":"Checking"},"transfer_to_account_ref":{"full_name":"Savings"},"txn_date":"2026-01-15"},"schema":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or TxnLineID so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"include_ret_element":{"items":{"enum":["Amount","ClassRef","EditSequence","FromAccountBalance","Memo","TimeCreated","TimeModified","ToAccountBalance","TransferFromAccountRef","TransferToAccountRef","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"transfer_from_account_ref":{"description":"Account that money will be transferred from.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"transfer_to_account_ref":{"description":"Account that money will be transferred to.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"}},"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createTransfer_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create transfer","tags":["Transfers"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateTransfer_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `TransferModRq`, from qbXML 12.0. The `transfer_mod` wrapper from qbXML is also accepted.\n\nIntuit's reference: [TransferMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/transfermod).","operationId":"updateTransfer","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"amount":250.0,"edit_sequence":"1700000000","memo":"Monthly service","transfer_from_account_ref":{"full_name":"Checking"},"transfer_to_account_ref":{"full_name":"Savings"},"txn_date":"2026-01-15","txn_id":"1A2B-1700000000"},"schema":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"include_ret_element":{"items":{"enum":["Amount","ClassRef","EditSequence","FromAccountBalance","Memo","TimeCreated","TimeModified","ToAccountBalance","TransferFromAccountRef","TransferToAccountRef","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"transfer_from_account_ref":{"description":"Account that money will be transferred from.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"transfer_to_account_ref":{"description":"Account that money will be transferred to.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateTransfer_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update transfer","tags":["Transfers"]}},"/connections/{connection_id}/onboarding-url":{"post":{"description":"Invalidates the previous onboarding link and returns the connection with a fresh `links.onboarding`, and a fresh `links.company_file` with it: both carry the same token. Onboarding links expire after 48 hours (see the Onboarding guide). It takes no body.","operationId":"regenerateOnboardingUrl","parameters":[{"description":"The connection to act on.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Connection"}},"type":"object"}}},"description":"Regenerated"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"apiKey":[]}],"summary":"Regenerate the onboarding URL","tags":["Connections"]}},"/connections/{connection_id}/credit-card-credits":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listCreditCardCredits_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CreditCardCreditQueryRq`.\n\nQueries for the specified credit or set of credits.\n\nIntuit's reference: [CreditCardCreditQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/creditcardcreditquery).","operationId":"listCreditCardCredits","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AccountRef","Amount","AmountInHomeCurrency","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExpenseLineRet","ExternalGUID","IsTaxIncluded","ItemGroupLineRet","ItemLineRet","Memo","PayeeEntityRef","RefNumber","SalesTaxCodeRef","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listCreditCardCredits_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List credit card credits","tags":["Credit Card Credits"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createCreditCardCredit_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CreditCardCreditAddRq`. The `credit_card_credit_add` wrapper from qbXML is also accepted.\n\nIf a QuickBooks user returns merchandise and receives credit, the credit is entered in QuickBooks and assigned to the appropriate expense account. Typically, the assigned expense account reflects the same account, customer, and class that were assigned when the merchandise was first purchased. (The original purchase would be described by a CreditCardCharge message.)\n\nIntuit's reference: [CreditCardCreditAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/creditcardcreditadd).","operationId":"createCreditCardCredit","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"account_ref":{"full_name":"Visa"},"item_line_add":[{"cost":60.0,"desc":"Blue widget, large","item_ref":{"full_name":"Widget"},"quantity":2}],"memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15"},"schema":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for `expense_line_add` it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_add":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for `expense_line_add` it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"memo":{"description":"Additional information.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["AccountRef","Amount","AmountInHomeCurrency","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExpenseLineRet","ExternalGUID","IsTaxIncluded","ItemGroupLineRet","ItemLineRet","ListID","Memo","OwnerID","PayeeEntityRef","RefNumber","SalesTaxCodeRef","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_add":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_add` and `item_group_line_add` combine: any number of each. QuickBooks receives them in that order: every `item_line_add`, then every `item_group_line_add`.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["item_group_ref"],"type":"object"},"type":"array"},"item_line_add":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If `item_line_add` doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_add` and `item_group_line_add` combine: any number of each. QuickBooks receives them in that order: every `item_line_add`, then every `item_group_line_add`.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"link_to_txn":{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"required":["txn_id","txn_line_id"],"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"}},"required":["account_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createCreditCardCredit_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create credit card credit","tags":["Credit Card Credits"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateCreditCardCredit_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CreditCardCreditModRq`, from qbXML 6.0. The `credit_card_credit_mod` wrapper from qbXML is also accepted.\n\nThe Credit Card credit mod request allows you to modify an existing credit card credit transaction using the SDK. You can modify most of the fields that can be modified in the QuickBooks UI. That is, this request can be used to modify Purchased from, date, credit card and modify lines from the item table and the expense table.\n\nThe following list describes what you can and can’t due with this request:\n\n- You can modify or clear the following fields: Ref Num and Memo\n- You can modify (not clear) transaction date\n- You can change the credit card account to support the scenario where the credit card transaction was created and posted to the wrong credit card account (impacts your accounting).\n- You can modify the Purchase from field (Payee Name) to change the Payee Name on the credit card transaction to a different name (employee, job, customer, vendor, other name). This field can’t be cleared since it is required by QB business logic\n- You can’t modify the amount due directly! (However the amount due will change when you modify the transaction lines.)\n- You can’t change a Credit to a Charge.\n- You can’t Void the credit. Use TxnVoid instead.\n- You can clear the entire expense table or the entire item table, but you can’t clear both tables at the same time.\n\nIntuit's reference: [CreditCardCreditMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/creditcardcreditmod).","operationId":"updateCreditCardCredit","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","txn_id":"1A2B-1700000000"},"schema":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"clear_expense_lines":{"description":"Set `clear_expense_lines` to true to clear all the expense lines. To modify individual lines, use `expense_line_mod`.","type":"boolean"},"clear_item_lines":{"description":"Set `clear_item_lines` to true to clear all the item lines. To modify individual lines, use `item_line_mod`.","type":"boolean"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_mod":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"include_ret_element":{"items":{"enum":["AccountRef","Amount","AmountInHomeCurrency","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExpenseLineRet","ExternalGUID","IsTaxIncluded","ItemGroupLineRet","ItemLineRet","ListID","Memo","OwnerID","PayeeEntityRef","RefNumber","SalesTaxCodeRef","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_mod":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_mod` and `item_group_line_mod` combine: any number of each. QuickBooks receives them in that order: every `item_line_mod`, then every `item_group_line_mod`.","items":{"properties":{"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_mod":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"item_line_mod":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_mod` and `item_group_line_mod` combine: any number of each. QuickBooks receives them in that order: every `item_line_mod`, then every `item_group_line_mod`.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateCreditCardCredit_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update credit card credit","tags":["Credit Card Credits"]}},"/connections/{connection_id}/cleared-statuses":{"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateClearedStatus_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ClearedStatusModRq`, from qbXML 2.0. The `cleared_status_mod` wrapper from qbXML is also accepted.\n\nChanges the cleared status of a transaction.\n\nIntuit's reference: [ClearedStatusMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/clearedstatusmod).","operationId":"updateClearedStatus","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"cleared_status":"Cleared","txn_id":"1A2B-1700000000"},"schema":{"properties":{"cleared_status":{"description":"Indicates whether a transaction or transaction line has been cleared.","enum":["Cleared","NotCleared","Pending"],"type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) G/p>If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"required":["cleared_status","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateClearedStatus_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update cleared status","tags":["Cleared Statuses"]}},"/workflows/schema":{"get":{"description":"The JSON Schema a workflow `definition` is written against. Also served unauthenticated at `/api/v2/workflows/schema.json` so a chart can `$ref` it.","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"A JSON Schema document"}},"security":[{"apiKey":[]}],"summary":"The workflow chart JSON Schema","tags":["Workflows"]}},"/connections/{connection_id}/bills":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listBills_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `BillQueryRq`.\n\nProvides functionality found in the Find/Advanced Find window to find bills that are to be paid by check. The Find/Advanced Find windows can be reached by clicking the Find button on the main QuickBooks menubar, by selecting Edit->Find, or simply by using the shortcut CTRL-F. Notice that you can use the `meta_data` attribute inside the query tag if you want only a count of the bills that will be returned from the query.\n\nIf you know the bill’s transaction ID or reference number, you could use these, or search by transaction date, or search by the date where the bill was last modified. You can search for paid/unpaid bills by using the `paid_status` flag.\n\nIf you need additional filters, you can use the entity filter to search for bills from a specific vendor or vendor sub (using the `list_id_with_children` or `full_name_with_children` tags). You can also search for bills entered against a particular account (the `ap_account_ref` specified in the originating BillAdd request). You can specify all subaccounts by using the various \\*WithChildren tags. For example, to find all bills entered against Checking where you have multiple checking accounts, you would use the `list_id_with_children` or `full_name_with_children` tags inside your `account_filter` tags. You can filter on the `ref_number` or `ref_number` range. Notice that all of these filters can be used together (ANDed) if desired.\n\nIf you want bill line items returned from the query, you must use the `include_line_items` tag. Notice that you don’t specify line item groups. If line item groups were set up for the line items, the returned line items are automatically segregated by group.\n\nIntuit's reference, linked below, has the rest of these notes.\n\nIntuit's reference: [BillQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/billquery).","operationId":"listBills","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items` or `include_linked_txns`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"description":"If you set `include_linked_txns` to true, then the returned object will include a list of all the transactions linked to the queried object. (This list is similar to the History view of a transaction in the user interface, but not identical, as the SDK list contains only linked transactions, not items.) Each linked transaction will be represented by a `linked_txn` aggregate.","in":"query","name":"include_linked_txns","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["APAccountRef","AmountDue","AmountDueInHomeCurrency","ClassRef","CurrencyRef","DataExtRet","DueDate","EditSequence","ExchangeRate","ExpenseLineRet","ExternalGUID","IsPaid","IsPending","IsTaxIncluded","ItemGroupLineRet","ItemLineRet","LinkedTxn","Memo","OpenAmount","RefNumber","SalesTaxCodeRef","TermsRef","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber","VendorAddress","VendorRef"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"Allows you to filter for transactions according to whether or not they are paid.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"paid_status","required":false,"schema":{"enum":["All","NotPaidOnly","PaidOnly"],"type":"string"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listBills_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List bills","tags":["Bills"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createBill_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `BillAddRq`. The `bill_add` wrapper from qbXML is also accepted.\n\nAdds a bill: money the business owes a vendor, entered in accounts payable. `vendor_ref` is required. Expenses go in `expense_line_add` and items received in `item_line_add`. To bill a whole open purchase order, link it with `link_to_txn_id`.\n\nNote: in some editions, such as Enterprise, some Bill-related preference settings can require the use of transaction dates, which means the TxnDates must be supplied, even though they are listed in the OSR as optional!\n\nThe Enter Bills form can be reached in the QuickBooks UI by selecting Vendors->Enter Bills, or by clicking on the Bill icon on the main menubar. Notice that the `expense_line_add` aggregate maps to a line item inside the Expense tab in the Enter Bills form, and the `item_line_add` aggregate maps to a line item inside the Item tab.\n\nIf you are receiving items against one or more open PurchaseOrders for the vendor, you can use the `link_to_txn_id` element (links in all line items from a PurchaseOrder) and/or the `link_to_txn` aggregate within a line item (links in a specific PurchaseOrder line item). See the chapter on handling receive payment and bill payment in the QB SDK Programmer’s Guide ([PDF](https://developer.intuit.com/app/developer/logged-in-content/QBSDK_ProGuide.pdf), 9.6 MB) for complete details and rules.\n\nSee also: [Inventory costing](https://docs.qubesync.com/quickbooks-notes#inventory-costing).\n\nIntuit's reference: [BillAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/billadd).","operationId":"createBill","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"item_line_add":[{"cost":60.0,"desc":"Blue widget, large","item_ref":{"full_name":"Widget"},"quantity":2}],"memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","vendor_ref":{"full_name":"Northwind Supplies"}},"schema":{"properties":{"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_add":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for `expense_line_add` it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"memo":{"description":"Appears in the A/P register and in reports that include this bill.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["APAccountRef","AmountDue","AmountDueInHomeCurrency","ClassRef","CurrencyRef","DataExtRet","DueDate","EditSequence","ExchangeRate","ExpenseLineRet","ExternalGUID","IsPaid","IsPending","IsTaxIncluded","ItemGroupLineRet","ItemLineRet","LinkedTxn","ListID","Memo","OpenAmount","OwnerID","RefNumber","SalesTaxCodeRef","TermsRef","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber","VendorAddress","VendorRef"],"type":"string"},"type":"array"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_add":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_add` and `item_group_line_add` combine: any number of each. QuickBooks receives them in that order: every `item_line_add`, then every `item_group_line_add`.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["item_group_ref"],"type":"object"},"type":"array"},"item_line_add":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If `item_line_add` doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_add` and `item_group_line_add` combine: any number of each. QuickBooks receives them in that order: every `item_line_add`, then every `item_group_line_add`.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"link_to_txn":{"description":"When used with InvoiceAdd, the transaction you are linking to via this field must be a SalesOrder; links to other transactions, such as to estimates, aren’t currently supported. When used with BillAdd or ItemReceiptAdd, the transaction you are linking to via this field must be a PurchaseOrder: links to other transactions aren’t currently supported.","properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"required":["txn_id","txn_line_id"],"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"link_to_txn_id":{"items":{"type":"string"},"type":"array"},"memo":{"description":"Appears in the A/P register and in reports that include this bill.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"vendor_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["vendor_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createBill_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create bill","tags":["Bills"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateBill_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `BillModRq`, from qbXML 3.0. The `bill_mod` wrapper from qbXML is also accepted.\n\nBillMod allows you to edit an existing Bill, similar to editing a Bill in the Enter Bills form in the QuickBooks UI.\n\nNotice that you can’t link a PurchaseOrder to an existing Bill using the BillMod request. You can link to a PurchaseOrder only in new Bills, using BillAdd.\n\nNotice also that some fields in a BillMod request can’t be cleared. If any of the following fields is included in a bill modify request, it must contain a value:\n\n- `vendor_ref`\n- `ap_account_ref`\n- `txn_date`\n- `due_date`\n- `clear_expense_lines`\n- `clear_item_lines`\n\nWithin `expense_line_mod`:\n\n- Amount\n- `billable_status`\n\nWithin `item_line_mod` or ItemGroupMod:\n\n- `item_ref`\n- Quantity\n- Cost\n- Amount\n- `billable_status`\n- `override_item_account_ref`\n\n(For more details about what it means for a field to be clearable or not clearable, see the QB SDK Programmer’s Guide ([PDF](https://developer.intuit.com/app/developer/logged-in-content/QBSDK_ProGuide.pdf), 9.6 MB).)\n\nIntuit's reference: [BillMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/billmod).","operationId":"updateBill","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","txn_id":"1A2B-1700000000","vendor_ref":{"full_name":"Northwind Supplies"}},"schema":{"properties":{"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"clear_expense_lines":{"description":"Set `clear_expense_lines` to true to clear all the expense lines. To modify individual lines, use `expense_line_mod`.","type":"boolean"},"clear_item_lines":{"description":"Set `clear_item_lines` to true to clear all the item lines. To modify individual lines, use `item_line_mod`.","type":"boolean"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_mod":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Appears in the A/P register and in reports that include this bill.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"include_ret_element":{"items":{"enum":["APAccountRef","AmountDue","AmountDueInHomeCurrency","ClassRef","CurrencyRef","DataExtRet","DueDate","EditSequence","ExchangeRate","ExpenseLineRet","ExternalGUID","IsPaid","IsPending","IsTaxIncluded","ItemGroupLineRet","ItemLineRet","LinkedTxn","ListID","Memo","OpenAmount","OwnerID","RefNumber","SalesTaxCodeRef","TermsRef","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber","VendorAddress","VendorRef"],"type":"string"},"type":"array"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_mod":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_mod` and `item_group_line_mod` combine: any number of each. QuickBooks receives them in that order: every `item_line_mod`, then every `item_group_line_mod`.","items":{"properties":{"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_mod":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"item_line_mod":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_mod` and `item_group_line_mod` combine: any number of each. QuickBooks receives them in that order: every `item_line_mod`, then every `item_group_line_mod`.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"memo":{"description":"Appears in the A/P register and in reports that include this bill.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"vendor_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateBill_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update bill","tags":["Bills"]}},"/connections/{connection_id}/bill-payment-credit-cards":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listBillPaymentCreditCards_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `BillPaymentCreditCardQueryRq`, from qbXML 2.0.\n\nProvides functionality found in the Find/Advanced Find window to find bill payments that were paid by credit card. The Find/Advanced Find windows can be reached by clicking the Find button on the main QuickBooks menubar, by selecting Edit->Find, or simply by using the shortcut CTRL-F. Notice that you can use the `meta_data` attribute inside the query tag if you want only a count of the bill payments that will be returned from the query.\n\nIf you know the bill’s transaction ID or reference number, you could use these, or search by transaction date, or search by the date where the bill was last modified.\n\n**Important:** If you made a bill payment by credit card, and ONLY applied a credit using SetCredit (no funds were applied other than the credit), then that payment won’t be returned in this query because it isn’t considered a separate transaction and has no `txn_id`. To get that kind of payment, you must do a BillQuery on the original bill and specify IncludeLinkedTxns. Any applied credit will be linked directly to the bill.\n\nIf you need additional filters, you can use the entity filter to search for bills from a specific vendor or vendor sub (using the `list_id_with_children` or `full_name_with_children` tags). You can also search for bills entered against a particular account (the `ap_account_ref` specified in the originating BillAdd request). You can specify all subaccounts by using the various \\*WithChildren tags. For example, to find all bills entered against Checking where you have multiple checking accounts, you would use the `list_id_with_children` or `full_name_with_children` tags inside your `account_filter` tags. Finally, you can filter on the `ref_number` or `ref_number` range. Notice that all of these filters can be used together (ANDed) if desired.\n\nIntuit's reference, linked below, has the rest of these notes.\n\nIntuit's reference: [BillPaymentCreditCardQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/billpaymentcreditcardquery).","operationId":"listBillPaymentCreditCards","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["APAccountRef","Amount","AmountInHomeCurrency","AppliedToTxnRet","CreditCardAccountRef","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExternalGUID","Memo","PayeeEntityRef","RefNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listBillPaymentCreditCards_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List bill payment credit cards","tags":["Bill Payment Credit Cards"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createBillPaymentCreditCard_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `BillPaymentCreditCardAddRq`, from qbXML 2.0. The `bill_payment_credit_card_add` wrapper from qbXML is also accepted.\n\nA BillPaymentCreditCardAdd request must include either `payment_amount`, `set_credit`, or `discount_amount` (or more than one of these). If none of these three is included, the SDK will return an error.\n\nBillPaymentCreditCardAdd provides functionality found in the Pay Bills form in the QuickBooks UI. You can reach this form by selecting Retail->Pay Bills from the main QuickBooks menubar. BillPayment is described in detail in the chapter on handling receive payment and bill payment in the QB SDK Programmer’s Guide. Notice that the request requires one (but not more than one!) BillPaymentCreditCardAdd sub aggregate, which is provided to support the SDK macro feature in this request. (See the QB SDK Programmer’s Guide ([PDF](https://developer.intuit.com/app/developer/logged-in-content/QBSDK_ProGuide.pdf), 9.6 MB) for more information about macros.) Notice that you can supply only one of these sub aggregates in the request. If you want to pay multiple bills, you must issue a separate request for each bill pay.\n\nIf you are using more than one A/P account, make sure that the `ap_account_ref` in the BillPaymentCreditCardAdd matches the `ap_account_ref` that was used when the Bill was originally added. That is, the Bill was entered in a particular account payable: use that same account payable when you pay the bill using this request. Notice that although you can set the IsToBePrinted flag, you can’t print checks using the SDK.\n\nFinally, notice that it is possible to issue this request using only `set_credit` to apply an existing credit to the bill. However, if you do this, you should be aware that no transaction ID is generated. The credit and the bill simply are linked. See the QB SDK Programmer’s Guide ([PDF](https://developer.intuit.com/app/developer/logged-in-content/QBSDK_ProGuide.pdf), 9.6 MB) for details.\n\nIntuit's reference: [BillPaymentCreditCardAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/billpaymentcreditcardadd).","operationId":"createBillPaymentCreditCard","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"applied_to_txn_add":[{"txn_id":"1A2B-1700000000"}],"credit_card_account_ref":{"full_name":"Visa"},"memo":"Monthly service","payee_entity_ref":{"full_name":"Northwind Supplies"},"ref_number":"1001","txn_date":"2026-01-15"},"schema":{"properties":{"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"applied_to_txn_add":{"items":{"properties":{"discount_account_ref":{"description":"Refers to the account where this discount is tracked. In a request, if a `discount_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"discount_amount":{"description":"Reduces the receivable amount.","type":"number"},"discount_class_ref":{"description":"Class reference used in the Discount object","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"payment_amount":{"description":"Represents the amount assigned to a particular receivable. The sum of all `payment_amount` elements in any given receive payment transaction must not be greater than TotalAmount.","type":"number"},"set_credit":{"items":{"properties":{"applied_amount":{"description":"Amount of a credit that is applied to a customer’s invoice, or amount of a payment that is applied to a particular bill or vendor credit.","type":"number"},"credit_txn_id":{"description":"The ID of the credit memo that you are applying to this invoice or bill.","type":"string"},"override":{"description":"Option to override credit","type":"boolean"},"txn_line_id":{"type":"string"}},"required":["applied_amount","credit_txn_id"],"type":"object"},"type":"array"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"required":["amount","txn_line_id"],"type":"object"},"type":"array"}},"required":["txn_id"],"type":"object"},"type":"array"},"credit_card_account_ref":{"description":"Refers to the credit card account to which this payment is being charged. In a request, if a `credit_card_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["APAccountRef","Amount","AmountInHomeCurrency","AppliedToTxnRet","CreditCardAccountRef","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExternalGUID","ListID","Memo","OwnerID","PayeeEntityRef","RefNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"}},"required":["applied_to_txn_add","credit_card_account_ref","payee_entity_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createBillPaymentCreditCard_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create bill payment credit card","tags":["Bill Payment Credit Cards"]}},"/connections/{connection_id}/budget-summary-reports":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listBudgetSummaryReports_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `BudgetSummaryReportQueryRq`, from qbXML 3.0.\n\nGenerates budget reports similar to the budget report functionality that is available within the QuickBooks UI. (From the main QB menubar select Reports->Budgets & Forecasts.) Note: the graphing functionality, forecasts, and memorized reports that available through the UI aren’t supported by the SDK. Notice that if you simply use the default instead of specifying the Fiscal Year, the `report_period` defaults to “year to date.” You can’t change the default to “This Fiscal Year.”\n\nThere can only be one balance sheet budget for each fiscal year, one profit and loss (P&L) by account budget per fiscal year, and one profit and loss (P&L) by account and customer budget per fiscal year. Hence the `fiscal_year` element is key in specifying which budget you want. Notice that there are two “views” into each of the two budget categories: the Overview, which shows the budget itself, and the Actual, which shows how expenditures are currently running against the budget.\n\nAll of the budget reports supported in the UI are supported in the SDK, although the UI and SDK nomenclature differs slightly. The UI shows Budget Overview and Budget Vs Actual as choices in the selection list, with Balance Sheet and P&L as subchoices in a subsequent selection list, already filtered by Accounts, or Accounts and Classes, or Accounts and Customers, if these are available.\n\nIn comparison, you choose the budget view you want via the SDK BudgetSummaryType element, which has these possible values:\n\n- BalanceSheetBudgetOverview\n- BalanceSheetBudgetVsActual\n- ProfitAndLossBudgetOverview\n- ProfitAndLossBudgetVsActual\n\nThen you specify any additional filtering by the Budget Criterion value you specify (Accounts, AccountsAndCustomers, or AccountsAndClasses). Notice that before you can obtain a Budget report, the “target” budget must be defined in QuickBooks, via the UI, because you can’t create a budget via the SDK.\n\nIntuit's reference: [BudgetSummaryReportQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/budgetsummaryreportquery).","operationId":"listBudgetSummaryReports","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"What this budget covers.","in":"query","name":"budget_criterion","required":false,"schema":{"enum":["Accounts","AccountsAndClasses","AccountsAndCustomers"],"type":"string"}},{"description":"The type of budget report being queried.","in":"query","name":"budget_summary_report_type","required":true,"schema":{"enum":["BalanceSheetBudgetOverview","BalanceSheetBudgetVsActual","ProfitAndLossBudgetOverview","ProfitAndLossBudgetPerformance","ProfitAndLossBudgetVsActual"],"type":"string"}},{"description":"Set `display_report` to true to display this report within the QuickBooks UI. (Default is false.) If you want the request to display the report without returning any data to your application, set the responseData attribute to includeNone.","in":"query","name":"display_report","required":false,"schema":{"type":"boolean"}},{"description":"Specify the fiscal year of the budget to be queried. There can only be one balance sheet budget for each fiscal year, one profit and loss (P&L) by account budget per fiscal year, and one profit and loss (P&L) by account and customer budget per fiscal year. When Fiscal year isn’t the current year, the report returns the data for the full fiscal year.","in":"query","name":"fiscal_year","required":true,"schema":{"type":"integer"}},{"description":"Allows you to query for a specified class. Classes can be used to separate transactions into meaningful categories. (For example, transactions could be classified according to department, business location, or type of work.) In QuickBooks, class tracking is off by default.","in":"query","name":"report_class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"The time period covered by this report.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_date_macro","required":false,"schema":{"enum":["All","LastMonth","LastMonthToDate","LastQuarter","LastQuarterToDate","LastWeek","LastWeekToDate","LastYear","LastYearToDate","NextFourWeeks","NextMonth","NextQuarter","NextWeek","NextYear","ThisMonth","ThisMonthToDate","ThisQuarter","ThisQuarterToDate","ThisWeek","ThisWeekToDate","ThisYear","ThisYearToDate","Today","Yesterday"],"type":"string"}},{"description":"If you omit both `to_report_date` and `from_report_date`, the report will cover the current fiscal year to date.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_period","required":false,"schema":{"properties":{"from_report_date":{"description":"Selects information from this date and later. The range of acceptable `from_report_date` and `to_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"},"to_report_date":{"description":"Selects information created on this date or earlier. The range of acceptable `to_report_date` and `from_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"}},"type":"object"}},{"description":"`summarize_budget_columns_by` determines which data the report calculates and how the columns will be labeled across the top of the report.","in":"query","name":"summarize_budget_columns_by","required":false,"schema":{"enum":["Class","Customer","Date"],"type":"string"}},{"description":"How you want rows to be labeled in the report. For example, if you set the value to sbrbAccount, the report’s row labels might be “Checking,” “Savings,” and so on.","in":"query","name":"summarize_budget_rows_by","required":false,"schema":{"enum":["Account","Class","Customer"],"type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listBudgetSummaryReports_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List budget summary reports","tags":["Budget Summary Reports"]}},"/connections/{connection_id}/item-inventory-assemblies":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listItemInventoryAssemblies_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemInventoryAssemblyQueryRq`, from qbXML 2.0.\n\nQueries for the specified inventory assembly item or set of assembly items.\n\nIntuit's reference: [ItemInventoryAssemblyQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/iteminventoryassemblyquery).","operationId":"listItemInventoryAssemblies","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `full_name` or `list_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters according to the object’s class.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AssetAccountRef","AverageCost","BarCodeValue","BuildPoint","COGSAccountRef","ClassRef","DataExtRet","EditSequence","ExternalGUID","FullName","IncomeAccountRef","IsActive","IsTaxIncluded","ItemInventoryAssemblyLine","ListID","ManufacturerPartNumber","Max","Name","ParentRef","PrefVendorRef","PurchaseCost","PurchaseDesc","PurchaseTaxCodeRef","QuantityOnHand","QuantityOnOrder","QuantityOnSalesOrder","SalesDesc","SalesPrice","SalesTaxCodeRef","Sublevel","TimeCreated","TimeModified","UnitOfMeasureSetRef"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listItemInventoryAssemblies_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List item inventory assemblies","tags":["Item Inventory Assemblies"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createItemInventoryAssembly_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemInventoryAssemblyAddRq`, from qbXML 2.0. The `item_inventory_assembly_add` wrapper from qbXML is also accepted.\n\nAdds an inventory assembly item, which is an item that is assembled or manufactured from other inventory items. The items and/or assemblies that make up the assembly are called components. For Premier, an assembly can have a maximum of 100 components. For Enterprise, the maximum is 500 components.\n\nIntuit's reference: [ItemInventoryAssemblyAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/iteminventoryassemblyadd).","operationId":"createItemInventoryAssembly","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"Gift Basket"},"schema":{"properties":{"asset_account_ref":{"description":"Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"build_point":{"description":"The build notification point. The QuickBooks user will receive a notification when `quantity_on_hand` plus `quantity_on_order` falls below `build_point`.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cogs_account_ref":{"description":"Refers to the account that QuickBooks uses to track the original cost of goods that are eventually sold. (The AccountType of this account will be CostOfGoodsSold.) In a request, if a `cogs_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["AssetAccountRef","AverageCost","BarCodeValue","BuildPoint","COGSAccountRef","ClassRef","DataExtRet","EditSequence","ExternalGUID","FullName","IncomeAccountRef","IsActive","IsTaxIncluded","ItemInventoryAssemblyLine","ListID","ManufacturerPartNumber","Max","Name","OwnerID","ParentRef","PrefVendorRef","PurchaseCost","PurchaseDesc","PurchaseTaxCodeRef","QuantityOnHand","QuantityOnOrder","QuantityOnSalesOrder","SalesDesc","SalesPrice","SalesTaxCodeRef","Sublevel","TimeCreated","TimeModified","TxnID","TxnNumber","UnitOfMeasureSetRef"],"type":"string"},"type":"array"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_date":{"description":"The date when an item was converted into an inventory item from some other type of item.","format":"date","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_inventory_assembly_line":{"items":{"properties":{"item_inventory_ref":{"description":"An inventory item is any merchandise or part that a business purchases, tracks as inventory, and then resells. In QuickBooks, information about an inventory item is grouped into three categories:Puchase Information includes `purchase_desc`, `purchase_cost`, `cogs_account_ref`, and `pref_vendor_ref`. Sales Information includes `sales_desc`, `sales_price`, and `sales_tax_code_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"}},"required":["item_inventory_ref"],"type":"object"},"type":"array"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"max":{"description":"Maximum number of items in inventory.","type":"number"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity_on_hand":{"description":"The number of these items in inventory. `quantity_on_hand` times `average_cost` is `total_value` in an inventory item list. To change the `quantity_on_hand` for an item, you would have to use InventoryAdjustmentAdd not an ItemInventoryMod.","type":"number"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"total_value":{"description":"The total value of this inventory. If `total_value` is included, `quantity_on_hand` must also be included and must be greater than zero. If both `quantity_on_hand` and `purchase_cost` are included, then `total_value` will be set to `quantity_on_hand` times `purchase_cost`, regardless of what `total_value` is explicitly set to.","type":"number"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createItemInventoryAssembly_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create item inventory assembly","tags":["Item Inventory Assemblies"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateItemInventoryAssembly_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemInventoryAssemblyModRq`, from qbXML 3.0. The `item_inventory_assembly_mod` wrapper from qbXML is also accepted.\n\nModifies an inventory assembly item. If you are adding components to the assembly, remember that the component items and/or assemblies that make up the assembly are limited in number. For Premier, an assembly can have a maximum of 100 components. For Enterprise, the maximum is 500 components.\n\nStarting with qbXML spec 7.0, you can modify the income account ref, using the `income_account_ref` aggregate and the `apply_income_account_ref_to_existing_txns` boolean. You need to use the `apply_income_account_ref_to_existing_txns` boolean because the QuickBooks UI displays a prompt asking whether the change should apply to existing transactions or not. Specifying True for the boolean basically dismisses this with a “Yes” answer, allowing your changes to be made and changes any existing transactions that use the item with that AccountRef. Specifying “False” means that the mod won’t take affect if there are existing transactions.\n\nSetting this to “True” should be used with caution and normally only after some user has indicated that they want those changes made to all those existing transactions!\n\nIf any affected transactions are protected by a closing date and password, the `income_account_ref` changes won’t be made and so the Mod request will return an error without making the requested Mod.\n\nIntuit's reference: [ItemInventoryAssemblyMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/iteminventoryassemblymod).","operationId":"updateItemInventoryAssembly","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Gift Basket"},"schema":{"not":{"anyOf":[{"required":["clear_items_in_group","item_inventory_assembly_line"]}]},"properties":{"apply_income_account_ref_to_existing_txns":{"description":"Used to support changing the AccountRef in the Mod request. When you do this, the QuickBooks UI normally displays a prompt asking whether the change should apply to existing transactions or not. Specifying False basically dismisses this with a “No” answer; specifying True dismisses it with a “Yes” answer and then changes the existing transactions that use the item with that AccountRef.","type":"boolean"},"asset_account_ref":{"description":"Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"build_point":{"description":"The build notification point. The QuickBooks user will receive a notification when `quantity_on_hand` plus `quantity_on_order` falls below `build_point`.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"clear_items_in_group":{"description":"Set to true to clear all the items in this group.\n\nChoose at most one of: `clear_items_in_group`, or `item_inventory_assembly_line`.","type":"boolean"},"cogs_account_ref":{"description":"Refers to the account that QuickBooks uses to track the original cost of goods that are eventually sold. (The AccountType of this account will be CostOfGoodsSold.) In a request, if a `cogs_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"force_uom_change":{"description":"By Default `force_uom_change` is false. However, in item Mod requests, you need to set the `force_uom_change` field to True if you are changing the UOM set and the base unit of the new set doesn’t match the base unit of the UOM set currently assigned to the item. This does the same thing as the user accepting the warning prompt in the UI.","type":"boolean"},"include_ret_element":{"items":{"enum":["AssetAccountRef","AverageCost","BarCodeValue","BuildPoint","COGSAccountRef","ClassRef","DataExtRet","EditSequence","ExternalGUID","FullName","IncomeAccountRef","IsActive","IsTaxIncluded","ItemInventoryAssemblyLine","ListID","ManufacturerPartNumber","Max","Name","OwnerID","ParentRef","PrefVendorRef","PurchaseCost","PurchaseDesc","PurchaseTaxCodeRef","QuantityOnHand","QuantityOnOrder","QuantityOnSalesOrder","SalesDesc","SalesPrice","SalesTaxCodeRef","Sublevel","TimeCreated","TimeModified","TxnID","TxnNumber","UnitOfMeasureSetRef"],"type":"string"},"type":"array"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_inventory_assembly_line":{"description":"Choose at most one of: `clear_items_in_group`, or `item_inventory_assembly_line`.","items":{"properties":{"item_inventory_ref":{"description":"An inventory item is any merchandise or part that a business purchases, tracks as inventory, and then resells. In QuickBooks, information about an inventory item is grouped into three categories:Puchase Information includes `purchase_desc`, `purchase_cost`, `cogs_account_ref`, and `pref_vendor_ref`. Sales Information includes `sales_desc`, `sales_price`, and `sales_tax_code_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"}},"required":["item_inventory_ref"],"type":"object"},"type":"array"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"max":{"description":"Maximum number of items in inventory.","type":"number"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateItemInventoryAssembly_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update item inventory assembly","tags":["Item Inventory Assemblies"]}},"/connections/{connection_id}/to-dos":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listToDos_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ToDoQueryRq`.\n\nA “to do”list is used in QuickBooks to keep track of tasks. Notice that the various Name filters refer to the Notes field in the ToDoQuery. So, by using these filters, you are searching the Notes.\n\nIntuit's reference: [ToDoQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/todoquery).","operationId":"listToDos","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or the set (`active_status`, `done_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Selects all the relevant “to do” notes (dsAll), only those that are done (dsDoneOnly), or only those that aren’t done (dsNotDoneOnly).\n\nChoose at most one of: `list_id`, or the set (`active_status`, `done_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"done_status","required":false,"schema":{"enum":["All","DoneOnly","NotDoneOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or the set (`active_status`, `done_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["CustomerRef","EditSequence","EmployeeRef","IsActive","IsDone","LeadRef","ListID","Notes","Priority","ReminderDate","ReminderTime","TimeCreated","TimeModified","Type","VendorRef"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or the set (`active_status`, `done_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or the set (`active_status`, `done_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or the set (`active_status`, `done_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or the set (`active_status`, `done_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or the set (`active_status`, `done_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listToDos_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List to dos","tags":["To Dos"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createToDo_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ToDoAddRq`. The `to_do_add` wrapper from qbXML is also accepted.\n\nA “to do”list is used in QuickBooks to keep track of tasks. Notice the Notes field: when you do a query on the ToDo list (ToDoQuery), you can use the supplied name filters to search these Notes and filter by them.\n\nIntuit's reference: [ToDoAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/todoadd).","operationId":"createToDo","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"customer_ref":{"full_name":"Acme Corp"},"notes":"Call about the renewal"},"schema":{"not":{"anyOf":[{"required":["customer_ref","employee_ref"]},{"required":["customer_ref","lead_ref"]},{"required":["customer_ref","vendor_ref"]},{"required":["employee_ref","lead_ref"]},{"required":["employee_ref","vendor_ref"]},{"required":["lead_ref","vendor_ref"]}]},"properties":{"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"employee_ref":{"description":"The employee list contains payroll information about each of the company’s employees.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["CustomerRef","EditSequence","EmployeeRef","ExternalGUID","IsActive","IsDone","LeadRef","ListID","Notes","OwnerID","Priority","ReminderDate","ReminderTime","TimeCreated","TimeModified","TxnID","TxnNumber","Type","VendorRef"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_done":{"description":"If `is_done` is true, this “to do” task has been completed. The default value of `is_done` is false.","type":"boolean"},"lead_ref":{"description":"The lead list contains information about leads for a company.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"notes":{"description":"Additional information.","type":"string"},"priority":{"description":"Priority may have one of the following values: Low [DEFAULT], Medium, High","enum":["High","Low","Medium"],"type":"string"},"reminder_date":{"description":"The date on which the contents of the Notes string will appear on the Reminder list within QuickBooks.","format":"date","type":"string"},"reminder_time":{"description":"The time on which the contents of the Notes string will appear on the Reminder list within QuickBooks.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"type":{"description":"Type may have one of the following values: Task [DEFAULT], Call, Fax, Email, Meeting, Appointment","enum":["Appointment","Call","Email","Fax","Meeting","Task"],"type":"string"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["notes"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createToDo_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create to do","tags":["To Dos"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateToDo_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ToDoModRq`, from qbXML 9.0. The `to_do_mod` wrapper from qbXML is also accepted.\n\nIntuit's reference: [ToDoMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/todomod).","operationId":"updateToDo","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"customer_ref":{"full_name":"Acme Corp"},"edit_sequence":"1700000000","list_id":"80000001-1700000000"},"schema":{"not":{"anyOf":[{"required":["customer_ref","employee_ref"]},{"required":["customer_ref","lead_ref"]},{"required":["customer_ref","vendor_ref"]},{"required":["employee_ref","lead_ref"]},{"required":["employee_ref","vendor_ref"]},{"required":["lead_ref","vendor_ref"]}]},"properties":{"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"employee_ref":{"description":"The employee list contains payroll information about each of the company’s employees.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["CustomerRef","EditSequence","EmployeeRef","ExternalGUID","IsActive","IsDone","LeadRef","ListID","Notes","OwnerID","Priority","ReminderDate","ReminderTime","TimeCreated","TimeModified","TxnID","TxnNumber","Type","VendorRef"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_done":{"description":"If `is_done` is true, this “to do” task has been completed. The default value of `is_done` is false.","type":"boolean"},"lead_ref":{"description":"The lead list contains information about leads for a company.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"notes":{"description":"Additional information.","type":"string"},"priority":{"description":"Priority may have one of the following values: Low [DEFAULT], Medium, High","enum":["High","Low","Medium"],"type":"string"},"reminder_date":{"description":"The date on which the contents of the Notes string will appear on the Reminder list within QuickBooks.","format":"date","type":"string"},"reminder_time":{"description":"The time on which the contents of the Notes string will appear on the Reminder list within QuickBooks.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"type":{"description":"Type may have one of the following values: Task [DEFAULT], Call, Fax, Email, Meeting, Appointment","enum":["Appointment","Call","Email","Fax","Meeting","Task"],"type":"string"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.\n\nChoose at most one of: `customer_ref`, or `employee_ref`, or `lead_ref`, or `vendor_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateToDo_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update to do","tags":["To Dos"]}},"/connections/{connection_id}/txn-deleteds":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listTxnDeleteds_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `TxnDeletedQueryRq`, from qbXML 2.0.\n\nLists the transactions deleted in the last 90 days, of the types `txn_del_type` names and no others: a deleted payment isn't listed when `txn_del_type` names only invoice and sales_order (observed on QuickBooks Enterprise 24.0, 2026-10-10), so name every type your app keeps. Each comes back with its type, id, reference number and when it was created and deleted, grouped by type in the order you named them; `deleted_date_range_filter` narrows it to a window.\n\n- If transaction A is deleted at 10 a.m. and B is deleted at 11 a.m., the query request will return A first, then B.\n- However, if the QuickBooks user moves the clock back before deleting B (for example, B is deleted at 9 a.m.), the query will still return first A then B, because B was deleted after A in “real” time.\n\nIntuit's reference: [TxnDeletedQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/txndeletedquery).","operationId":"listTxnDeleteds","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Filters according to delete dates (within the last 90 days).","in":"query","name":"deleted_date_range_filter","required":false,"schema":{"properties":{"from_deleted_date":{"description":"Selects objects deleted on or after this date. Both `from_deleted_date` and `to_deleted_date` must be between 1970-01-01 and 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST). (But note that ListDeletedQuery requests will only return records deleted within the last 90 days, even if the specified `from_deleted_date` is earlier.)","format":"date-time","type":"string"},"to_deleted_date":{"description":"Selects objects deleted on or before this date. Both `to_deleted_date` and `from_deleted_date` must be between 1970-01-01 and 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST). If `to_deleted_date` includes a date but not a time (for example, if you set it to 2002-02-14), the time is assumed to be the end of the day (2003-02-14T23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["RefNumber","TimeCreated","TimeDeleted","TxnDelType","TxnID"],"type":"string"},"type":"array"}},{"description":"The type of transaction to be deleted.","in":"query","name":"txn_del_type","required":true,"schema":{"items":{"enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","TimeTracking","TransferInventory","VehicleMileage","VendorCredit"],"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listTxnDeleteds_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List txn deleteds","tags":["Txn Deleteds"]}},"/workflow-templates/{key}":{"get":{"description":"One shipped template, with its chart under `definition`. To install it unmodified, use `POST /workflow-templates/{key}/install`; to install an adapted copy, `PUT /workflows/{key}`.","parameters":[{"description":"The template's key (see GET /workflow-templates)","in":"path","name":"key","required":true,"schema":{"pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WorkflowTemplate"}},"type":"object"}}},"description":"The template"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No template with that key"}},"security":[{"apiKey":[]}],"summary":"Get a workflow template","tags":["Workflows"]}},"/connections/{connection_id}/receive-payments":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listReceivePayments_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ReceivePaymentQueryRq`, from qbXML 1.1.\n\nFinds received payments: exact ones by `txn_id` or `ref_number`, or a filtered set by customer (`entity_filter`), date or account. What each payment paid (its applied_to_txn_ret) comes back only with `include_line_items`, though a payment has no lines: without it, a payment applied to invoices answers none. Each applied_to_txn_ret's balance_remaining and txn_date are the invoice's as it is now, not when the payment was made (both observed on QuickBooks Enterprise 24.0, 2026-10-10). Set `iterator` to page through many results.\n\nIntuit's reference: [ReceivePaymentQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/receivepaymentquery).","operationId":"listReceivePayments","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["ARAccountRef","AppliedToTxnRet","CreditCardTxnInfo","CurrencyRef","CustomerRef","DataExtRet","DepositToAccountRef","EditSequence","ExchangeRate","ExternalGUID","Memo","PaymentMethodRef","RefNumber","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber","UnusedCredits","UnusedPayment"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listReceivePayments_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List receive payments","tags":["Receive Payments"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateReceivePayment_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ReceivePaymentModRq`, from qbXML 6.0. The `receive_payment_mod` wrapper from qbXML is also accepted.\n\nModifies a receive payment transaction. If you save QBMS credit card data in your ReceivePayments, this Mod request allows you to capture a previously authorized credit card charge. The way this works is that the ReceivePaymentAdd would contain the QBMS `credit_card_txn_info` aggregate with the `credit_card_txn_type` set to “Authorization,” which causes QB to internally mark the transaction as pending.\n\nWhen the capture transaction is performed later, in QBMS, that capture transaction can be saved into QuickBooks via this Mod request, as you are modifying the original ReceivePayment but changing its `credit_card_txn_type` from”Authorization” to “Capture.” This mod operation results in the removal of the pending status and the posting of this receive payment.\n\nNotice that the reconciliation data fields (`recon_batch_id`, `payment_grouping_code`, `payment_status`, `txn_authorization_time`, `txn_authorization_stamp`, `client_trans_id`) are optional ONLY if the `credit_card_txn_type` is “Authorization” because authorizations don’t have such data. If the type is “Charge”, then those reconciliation fields must be supplied or you will get a runtime error.\n\nIntuit's reference, linked below, has the rest of these notes.\n\nIntuit's reference: [ReceivePaymentMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/receivepaymentmod).","operationId":"updateReceivePayment","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"customer_ref":{"full_name":"Acme Corp"},"edit_sequence":"1700000000","memo":"Monthly service","ref_number":"1001","total_amount":250.0,"txn_date":"2026-01-15","txn_id":"1A2B-1700000000"},"schema":{"properties":{"applied_to_txn_mod":{"items":{"properties":{"discount_account_ref":{"description":"Refers to the account where this discount is tracked. In a request, if a `discount_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"discount_amount":{"description":"Reduces the receivable amount.","type":"number"},"discount_class_ref":{"description":"Class reference used in the Discount object.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"payment_amount":{"description":"Represents the amount assigned to a particular receivable. The sum of all `payment_amount` elements in any given receive payment transaction must not be greater than `total_amount`.","type":"number"},"set_credit":{"items":{"properties":{"applied_amount":{"description":"Amount of a credit that is applied to a customer’s invoice, or amount of a payment that is applied to a particular bill or vendor credit.","type":"number"},"credit_txn_id":{"description":"The ID of the credit memo that you are applying to this invoice or bill.","type":"string"},"override":{"description":"Option to override credit.","type":"boolean"},"txn_line_id":{"type":"string"}},"required":["applied_amount","credit_txn_id"],"type":"object"},"type":"array"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"type":"object"},"type":"array"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info_mod":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info_mod":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"type":"object"},"credit_card_txn_result_info_mod":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"type":"object"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"include_ret_element":{"items":{"enum":["ARAccountRef","AppliedToTxnRet","CreditCardTxnInfo","CurrencyRef","CustomerRef","DataExtRet","DepositToAccountRef","EditSequence","ExchangeRate","ExternalGUID","ListID","Memo","OwnerID","PaymentMethodRef","RefNumber","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber","UnusedCredits","UnusedPayment"],"type":"string"},"type":"array"},"memo":{"description":"The beginning of this memo will appear in reports that show details of this receive payment.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"total_amount":{"description":"Total amount of money received. For ReceivePaymentAdd, the sum of the `payment_amount` amounts (in the AppliedToTxnAdd aggregates that are included) can’t be greater than the `total_amount`, or you will receive an error.","type":"number"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateReceivePayment_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update receive payment","tags":["Receive Payments"]}},"/connections/{connection_id}/paychecks":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listPaychecks_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PaycheckQueryRq`.\n\nIntuit's reference: [PaycheckQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/paycheckquery).","operationId":"listPaychecks","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AccountRef","Address","Amount","ClassRef","EditSequence","EmployeeRef","IsAccruingTime","IsToBePrinted","Memo","PayPeriodBeginDate","PayPeriodEndDate","PaycheckLineRet","PayrollDate","RefNumber","SickHoursAccrued","SickHoursAvailable","TaxTableVersion","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber","VacationHoursAccrued","VacationHoursAvailable"],"type":"string"},"type":"array"}},{"description":"QuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"format":"date-time","type":"string"},"to_modified_date":{"format":"date-time","type":"string"}},"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"payroll_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_payroll_date":false,"to_payroll_date":false}},"properties":{"from_payroll_date":{"format":"date","type":"string"},"to_payroll_date":{"format":"date","type":"string"}},"title":"FromPayrollDate + ToPayrollDate","type":"object"},{"properties":{"date_macro":{"enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"type":"string"},"to_ref_number":{"type":"string"}},"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"format":"date","type":"string"},"to_txn_date":{"format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listPaychecks_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List paychecks","tags":["Paychecks"]}},"/workflows/schema.json":{"get":{"description":"The same document as `/api/v2/workflows/schema`, served without an API key so a chart written anywhere can `$ref` it. This is the URL its `$id` names.","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"A JSON Schema document"}},"security":[],"summary":"The workflow chart JSON Schema, unauthenticated","tags":["Workflows"]}},"/connections/{connection_id}/payroll-detail-reports":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listPayrollDetailReports_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollDetailReportQueryRq`, from qbXML 3.0.\n\nReturns information from any of five QuickBooks payroll reports:\n\n- Employee state taxes detail report\n- Payroll item detail report (lists the payroll transactions on which each payroll item appears)\n- Payroll detail review report (provides detailed information about how QuickBooks calculates tax amounts on employee paychecks and in year-to-date transactions)\n- Payroll transaction detail report (shows the line-item detail that appears on each payroll transaction)\n- Payroll transactions by payee report (lists payroll transactions, grouping them by payee)\n\nPayroll Summary Reports can be generated if your application is accessing a company file that is currently signed up for a subscription to a payroll service. (If your application isn’t signed up, it will receive an error when it attempts to generate a report in this category.)\n\nThe restrictions noted above about payroll reports requiring the use of the Intuit Payroll service don’t apply to the QuickBooks sample companies. You can still test out these reports on the sample companies without subscribing to the payroll service. For all other companies, however, the company must be subscribed.\n\nIntuit's reference: [PayrollDetailReportQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrolldetailreportquery).","operationId":"listPayrollDetailReports","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Set `display_report` to true to display this report within the QuickBooks UI. (Default is false.) If you want the request to display the report without returning any data to your application, set the responseData attribute to includeNone.","in":"query","name":"display_report","required":false,"schema":{"type":"boolean"}},{"description":"Indicates whether this report should include all accounts or just those that are currently in use.","in":"query","name":"include_accounts","required":false,"schema":{"enum":["All","InUse"],"type":"string"}},{"in":"query","name":"include_column","required":false,"schema":{"items":{"enum":["Account","Aging","Amount","AmountDifference","AverageCost","BilledDate","BillingStatus","CalculatedAmount","Class","ClearedStatus","CostPrice","Credit","Currency","Date","Debit","DeliveryDate","DueDate","EstimateActive","ExchangeRate","FOB","IncomeSubjectToTax","Invoiced","Item","ItemDesc","LastModifiedBy","LatestOrPriorState","Memo","ModifiedTime","Name","NameAccountNumber","NameAddress","NameCity","NameContact","NameEmail","NameFax","NamePhone","NameState","NameZip","OpenBalance","OriginalAmount","PONumber","PaidAmount","PaidStatus","PaidThroughDate","PaymentMethod","PayrollItem","PrintStatus","ProgressAmount","ProgressPercent","Quantity","QuantityAvailable","QuantityOnHand","QuantityOnSalesOrder","ReceivedQuantity","RefNumber","RunningBalance","SSNOrTaxID","SalesRep","SalesTaxCode","SerialOrLotNumber","ShipDate","ShipMethod","SourceName","SplitAccount","TaxLine","TaxTableVersion","Terms","TxnID","TxnNumber","TxnType","UnitPrice","UserEdit","ValueOnHand","WageBase","WageBaseTips"],"type":"string"},"type":"array"}},{"in":"query","name":"payroll_detail_report_type","required":true,"schema":{"enum":["EmployeeStateTaxesDetail","PayrollItemDetail","PayrollReviewDetail","PayrollTransactionDetail","PayrollTransactionsByPayee"],"type":"string"}},{"description":"Allows you to query for a specified account type or for specific list elements.","in":"query","name":"report_account_filter","required":false,"schema":{"oneOf":[{"properties":{"account_type_filter":{"description":"Allows you to report on a specific account type.","enum":["APAndSalesTax","APOrCreditCard","ARAndAP","AccountsPayable","AccountsReceivable","AllowedFor1099","Asset","BalanceSheet","Bank","BankAndARAndAPAndUF","BankAndUF","CostOfSales","CreditCard","CurrentAsset","CurrentAssetAndExpense","CurrentLiability","Equity","EquityAndIncomeAndExpense","ExpenseAndOtherExpense","FixedAsset","IncomeAndExpense","IncomeAndOtherIncome","Liability","LiabilityAndEquity","LongTermLiability","NonPosting","OrdinaryExpense","OrdinaryIncome","OrdinaryIncomeAndCOGS","OrdinaryIncomeAndExpense","OtherAsset","OtherCurrentAsset","OtherCurrentLiability","OtherExpense","OtherIncome","OtherIncomeOrExpense"],"type":"string"}},"required":["account_type_filter"],"title":"AccountTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Allows you to query for a specified class. Classes can be used to separate transactions into meaningful categories. (For example, transactions could be classified according to department, business location, or type of work.) In QuickBooks, class tracking is off by default.","in":"query","name":"report_class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"The time period covered by this report.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_date_macro","required":false,"schema":{"enum":["All","LastMonth","LastMonthToDate","LastQuarter","LastQuarterToDate","LastWeek","LastWeekToDate","LastYear","LastYearToDate","NextFourWeeks","NextMonth","NextQuarter","NextWeek","NextYear","ThisMonth","ThisMonthToDate","ThisQuarter","ThisQuarterToDate","ThisWeek","ThisWeekToDate","ThisYear","ThisYearToDate","Today","Yesterday"],"type":"string"}},{"description":"The level of detail to include in the report.","in":"query","name":"report_detail_level_filter","required":false,"schema":{"enum":["All","AllExceptSummary","SummaryOnly"],"type":"string"}},{"description":"Allows you to query for a specified name type (customer, employee, vendor, or other) or query for specific list elements.","in":"query","name":"report_entity_filter","required":false,"schema":{"oneOf":[{"properties":{"entity_type_filter":{"description":"Allows you to report on a specific name type.","enum":["Customer","Employee","OtherName","Vendor"],"type":"string"}},"required":["entity_type_filter"],"title":"EntityTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Allows you to query for a specified item type (for example, discount, inventory, or non-inventory) or query for specific list elements.","in":"query","name":"report_item_filter","required":false,"schema":{"oneOf":[{"properties":{"item_type_filter":{"description":"Allows you to report on a specific item type.","enum":["AllExceptFixedAsset","Assembly","Discount","FixedAsset","Inventory","InventoryAndAssembly","NonInventory","OtherCharge","Payment","Sales","SalesTax","Service"],"type":"string"}},"required":["item_type_filter"],"title":"ItemTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Returns reports that were modified between these two dates (inclusive). The range of acceptable dates for both `from_report_modified_date` and `to_report_modified_date` is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).\n\nChoose at most one of: `report_modified_date_range_filter`, or `report_modified_date_range_macro`.","in":"query","name":"report_modified_date_range_filter","required":false,"schema":{"properties":{"from_report_modified_date":{"description":"Selects information from this date and later. The range of acceptable dates is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).","format":"date","type":"string"},"to_report_modified_date":{"description":"Selects information created on this date or earlier. The range of acceptable dates is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).","format":"date","type":"string"}},"type":"object"}},{"description":"The time period covered by this report.\n\nChoose at most one of: `report_modified_date_range_filter`, or `report_modified_date_range_macro`.","in":"query","name":"report_modified_date_range_macro","required":false,"schema":{"enum":["All","LastMonth","LastMonthToDate","LastQuarter","LastQuarterToDate","LastWeek","LastWeekToDate","LastYear","LastYearToDate","NextFourWeeks","NextMonth","NextQuarter","NextWeek","NextYear","ThisMonth","ThisMonthToDate","ThisQuarter","ThisQuarterToDate","ThisWeek","ThisWeekToDate","ThisYear","ThisYearToDate","Today","Yesterday"],"type":"string"}},{"description":"The report will return open balance information up to the `report_open_balance_as_of` date.","in":"query","name":"report_open_balance_as_of","required":false,"schema":{"enum":["ReportEndDate","Today"],"type":"string"}},{"description":"If you omit both `to_report_date` and `from_report_date`, the report will cover the current fiscal year to date.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_period","required":false,"schema":{"properties":{"from_report_date":{"description":"Selects information from this date and later. The range of acceptable `from_report_date` and `to_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"},"to_report_date":{"description":"Selects information created on this date or earlier. The range of acceptable `to_report_date` and `from_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"}},"type":"object"}},{"description":"Allows you to query for posting reports, non-posting reports, or reports that are either one.","in":"query","name":"report_posting_status_filter","required":false,"schema":{"enum":["Either","NonPosting","Posting"],"type":"string"}},{"description":"`summarize_rows_by` (along with IncludeColumnList, in most cases) determines what data is calculated for this report and controls how the rows are organized and labeled. For example, if you set the value to srbAccount, the report’s row labels might be “Checking,” “Savings,” and so on.","in":"query","name":"summarize_rows_by","required":false,"schema":{"enum":["Account","BalanceSheet","Class","Customer","CustomerType","Day","Employee","FourWeek","HalfMonth","IncomeStatement","ItemDetail","ItemType","Month","Payee","PaymentMethod","PayrollItemDetail","PayrollYtdDetail","Quarter","SalesRep","SalesTaxCode","ShipMethod","TaxLine","Terms","TotalOnly","TwoWeek","Vendor","VendorType","Week","Year"],"type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listPayrollDetailReports_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List payroll detail reports","tags":["Payroll Detail Reports"]}},"/connections/{connection_id}/customer-msgs":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listCustomerMsgs_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CustomerMsgQueryRq`.\n\nQueries for the specified customer message or set of messages.\n\nIntuit's reference: [CustomerMsgQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/customermsgquery).","operationId":"listCustomerMsgs","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["EditSequence","IsActive","ListID","Name","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listCustomerMsgs_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List customer msgs","tags":["Customer Msgs"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createCustomerMsg_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CustomerMsgAddRq`. The `customer_msg_add` wrapper from qbXML is also accepted.\n\nIntuit's reference: [CustomerMsgAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/customermsgadd).","operationId":"createCustomerMsg","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"Thank you for your business."},"schema":{"properties":{"include_ret_element":{"items":{"enum":["EditSequence","ExternalGUID","IsActive","ListID","Name","OwnerID","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createCustomerMsg_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create customer msg","tags":["Customer Msgs"]}},"/connections/{connection_id}/item-assemblies-can-builds":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listItemAssembliesCanBuilds_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemAssembliesCanBuildQueryRq`, from qbXML 5.0.\n\nA query that is used to determine the current number of the specified assembly that can be built from the components on hand.\n\nIntuit's reference: [ItemAssembliesCanBuildQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemassembliescanbuildquery).","operationId":"listItemAssembliesCanBuilds","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"An inventory assembly item is one that is assembled or manufactured from inventory items. The items and/or assemblies that make up the assembly are called components. For Premier, an assembly can have a maximum of 100 components. For Enterprise, the maximum is 500 components.","in":"query","name":"item_inventory_assembly_ref","required":true,"schema":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","in":"query","name":"txn_date","required":true,"schema":{"format":"date","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listItemAssembliesCanBuilds_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List item assemblies can builds","tags":["Item Assemblies Can Builds"]}},"/connections/{connection_id}/customers":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listCustomers_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CustomerQueryRq`.\n\nFinds customers and jobs: exact ones by `list_id` or `full_name`, or a filtered set by name, `active_status` and modified date. Without `active_status` only active customers come back. Set `iterator` to page through a long list: each page arrives at your `webhook_url` under one request id.\n\nImportant: We highly recommend that you use the `include` tag in your CustomerQuery to include any data you want but do NOT include the `ship_address` data in the Response, unless you need to get the shipping address for a particular customer. Excluding the shipping address data will significantly improve the performance of the CustomerQuery.\n\nIntuit's reference: [CustomerQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/customerquery).","operationId":"listCustomers","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `full_name` or `list_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_contains`, `name_ends_with`, `name_range`, `name_starts_with`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_contains`, `name_ends_with`, `name_range`, `name_starts_with`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the metaData query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_contains`, `name_ends_with`, `name_range`, `name_starts_with`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_contains`, `name_ends_with`, `name_range`, `name_starts_with`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_contains`, `name_ends_with`, `name_range`, `name_starts_with`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_contains`, `name_ends_with`, `name_range`, `name_starts_with`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: the set (`name_contains`, `name_ends_with`, `name_starts_with`), or `name_range`. Members of a set combine with each other, not with the other choices.","in":"query","name":"name_starts_with","required":false,"schema":{"type":"string"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: the set (`name_contains`, `name_ends_with`, `name_starts_with`), or `name_range`. Members of a set combine with each other, not with the other choices.","in":"query","name":"name_contains","required":false,"schema":{"type":"string"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: the set (`name_contains`, `name_ends_with`, `name_starts_with`), or `name_range`. Members of a set combine with each other, not with the other choices.","in":"query","name":"name_ends_with","required":false,"schema":{"type":"string"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: the set (`name_contains`, `name_ends_with`, `name_starts_with`), or `name_range`. Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range","required":false,"schema":{"properties":{"from":{"type":"string"},"to":{"type":"string"}},"type":"object"}},{"in":"query","name":"include","required":false,"schema":{"items":{"enum":["AccountNumber","AdditionalContactRef","AdditionalNotesRet","AltContact","AltPhone","Balance","BillAddress","BillAddressBlock","Cc","ClassRef","CompanyName","Contact","ContactsRet","CreditCardInfo","CreditLimit","CurrencyRef","CustomerTypeRef","DataExtRet","DeliveryMethod","EditSequence","Email","ExternalGUID","Fax","FirstName","FullName","IsActive","IsStatementWithParent","ItemSalesTaxRef","JobDesc","JobEndDate","JobProjectedEndDate","JobStartDate","JobStatus","JobTitle","JobTypeRef","LastName","ListID","MiddleName","Mobile","Name","Notes","Pager","ParentRef","Phone","PreferredDeliveryMethod","PreferredPaymentMethodRef","PriceLevelRef","PrintAs","ResaleNumber","SalesRepRef","SalesTaxCodeRef","SalesTaxCountry","Salutation","ShipAddress","ShipAddressBlock","ShipToAddress","Sublevel","Suffix","TaxRegistrationNumber","TermsRef","TimeCreated","TimeModified","TotalBalance"],"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listCustomers_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List customers","tags":["Customers"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createCustomer_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CustomerAddRq`. The `customer_add` wrapper from qbXML is also accepted.\n\nAdds a customer, or a job under one: set `parent_ref` to the customer and the job's `full_name` becomes `Parent:Job`. `name` is required. QuickBooks keeps customers, vendors, employees and other names in one name space, so a name any of them already uses fails with 3100 `name_in_use`. The `ensure` workflow template adds the customer only if it isn't there yet, and on a clash finds out what holds the name and asks.\n\nIntuit's reference: [CustomerAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/customeradd).","operationId":"createCustomer","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"bill_address":{"addr1":"123 Main St","city":"Springfield","postal_code":"62701","state":"IL"},"company_name":"Acme Corp","email":"billing@acme.example","name":"Acme Corp","phone":"555-0100"},"schema":{"properties":{"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"mobile":{"type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"job_projected_end_date":{"description":"The date on which work for a sub-customer is expected to be complete; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","format":"date","type":"string"},"delivery_method":{"enum":["Email","Fax","Print"],"type":"string"},"open_balance":{"description":"The opening balance of this customer’s account. A positive number indicates money owed by the customer.","type":"number"},"fax":{"description":"Fax number.","type":"string"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"ship_to_address":{"items":{"properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"default_ship_to":{"description":"Flag that address is the default ship to address.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"required":["name"],"type":"object"},"type":"array"},"preferred_payment_method_ref":{"description":"Refers to a PaymentMethod object. In a request, if a `preferred_payment_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"alt_contact":{"description":"The name of an alternate contact person for a vendor, customer, or “other name” entry.","type":"string"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"job_status":{"description":"`job_status` Status information about a sub-customer; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","enum":["Awarded","Closed","InProgress","None","NotAwarded","Pending"],"type":"string"},"customer_type_ref":{"description":"Customer types allow business owners to categorize customers in ways that are meaningful for their businesses. For example, a customer type might indicate which industry a customer represents, or which part of the country a customer is in. A `customer_type_ref` aggregate refers to one of the types on the CustomerType list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"additional_notes":{"items":{"properties":{"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"}},"required":["note"],"type":"object"},"type":"array"},"job_start_date":{"description":"The date on which work for a sub-customer was started; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","format":"date","type":"string"},"credit_limit":{"description":"Set and returned as a positive number that indicates a customer’s or vendor’s credit limit. If no value has been defined, there is no credit limit.","type":"number"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"email":{"description":"E-mail address.","type":"string"},"contacts":{"items":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"required":["contact_name","contact_value"],"type":"object"},"type":"array"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"}},"required":["first_name"],"type":"object"},"type":"array"},"credit_card_info":{"description":"Customer’s credit-card information.","properties":{"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"}},"type":"object"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"is_statement_with_parent":{"type":"boolean"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"phone":{"description":"The telephone number.","type":"string"},"job_desc":{"description":"A short job description for a sub-customer; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","type":"string"},"job_type_ref":{"description":"Job type can be used to separate jobs into any categories that are meaningful to the business. A `job_type_ref` aggregate refers to a job type on the JobType list. In a request, if a `job_type_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"print_as":{"type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"cc":{"description":"Email address that would be carbon copied or CC.","type":"string"},"suffix":{"type":"string"},"open_balance_date":{"description":"The date of the opening balance for this customer.","format":"date","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_country":{"description":"Country that sales tax is collected for.","enum":["Australia","Canada","UK","US"],"type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"required":["contact_name","contact_value"],"type":"object"},"type":"array"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"job_end_date":{"description":"The date on which work for a sub-customer was completed; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","format":"date","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"pager":{"type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_registration_number":{"description":"Tax registration number used in CA and UK.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"resale_number":{"description":"The customer’s resale number, if they have one. This number won’t affect reports or sales tax calculations.","type":"string"},"notes":{"description":"Not supported.","type":"string"},"include_ret_element":{"items":{"enum":["AccountNumber","AdditionalContactRef","AdditionalNotesRet","AltContact","AltPhone","Balance","BillAddress","BillAddressBlock","Cc","ClassRef","CompanyName","Contact","ContactsRet","CreditCardInfo","CreditLimit","CurrencyRef","CustomerTypeRef","DataExtRet","DeliveryMethod","EditSequence","Email","ExternalGUID","Fax","FirstName","FullName","IsActive","IsStatementWithParent","ItemSalesTaxRef","JobDesc","JobEndDate","JobProjectedEndDate","JobStartDate","JobStatus","JobTitle","JobTypeRef","LastName","ListID","MiddleName","Mobile","Name","Notes","OwnerID","Pager","ParentRef","Phone","PreferredDeliveryMethod","PreferredPaymentMethodRef","PriceLevelRef","PrintAs","ResaleNumber","SalesRepRef","SalesTaxCodeRef","SalesTaxCountry","Salutation","ShipAddress","ShipAddressBlock","ShipToAddress","Sublevel","Suffix","TaxRegistrationNumber","TermsRef","TimeCreated","TimeModified","TotalBalance","TxnID","TxnNumber"],"type":"string"},"type":"array"},"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"},"preferred_delivery_method":{"description":"Preference for how invoices are delivered.","enum":["Email","Fax","None"],"type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createCustomer_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create customer","tags":["Customers"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateCustomer_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CustomerModRq`. The `customer_mod` wrapper from qbXML is also accepted.\n\nChanges a customer or job. Send its `list_id`, the `edit_sequence` QuickBooks last returned for it, and only the fields to change; the rest keep their values. If the customer changed since you read it, QuickBooks answers 3200 `stale_edit_sequence` with the customer as it stands in `error.current`: re-apply your change and retry with its `edit_sequence`.\n\nIntuit's reference: [CustomerMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/customermod).","operationId":"updateCustomer","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"bill_address":{"addr1":"123 Main St","city":"Springfield","postal_code":"62701","state":"IL"},"company_name":"Acme Corp","edit_sequence":"1700000000","email":"billing@acme.example","list_id":"80000001-1700000000","name":"Acme Corp","phone":"555-0100"},"schema":{"properties":{"additional_notes_mod":{"items":{"properties":{"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"note_id":{"description":"The ID of the note.","type":"integer"}},"required":["note","note_id"],"type":"object"},"type":"array"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"mobile":{"type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"job_projected_end_date":{"description":"The date on which work for a sub-customer is expected to be complete; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","format":"date","type":"string"},"contacts_mod":{"items":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"required":["contact_name","contact_value"],"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"}},"required":["first_name"],"type":"object"},"type":"array"},"delivery_method":{"enum":["Email","Fax","Print"],"type":"string"},"fax":{"description":"Fax number.","type":"string"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"ship_to_address":{"items":{"properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"default_ship_to":{"description":"Flag that address is the default ship to address.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"required":["name"],"type":"object"},"type":"array"},"preferred_payment_method_ref":{"description":"Refers to a PaymentMethod object. In a request, if a `preferred_payment_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"alt_contact":{"description":"The name of an alternate contact person for a vendor, customer, or “other name” entry.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"job_status":{"description":"`job_status` Status information about a sub-customer; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","enum":["Awarded","Closed","InProgress","None","NotAwarded","Pending"],"type":"string"},"customer_type_ref":{"description":"Customer types allow business owners to categorize customers in ways that are meaningful for their businesses. For example, a customer type might indicate which industry a customer represents, or which part of the country a customer is in. A `customer_type_ref` aggregate refers to one of the types on the CustomerType list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"job_start_date":{"description":"The date on which work for a sub-customer was started; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","format":"date","type":"string"},"credit_limit":{"description":"Set and returned as a positive number that indicates a customer’s or vendor’s credit limit. If no value has been defined, there is no credit limit.","type":"number"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"email":{"description":"E-mail address.","type":"string"},"credit_card_info":{"description":"Customer’s credit-card information.","properties":{"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"}},"type":"object"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"is_statement_with_parent":{"type":"boolean"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"phone":{"description":"The telephone number.","type":"string"},"job_desc":{"description":"A short job description for a sub-customer; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","type":"string"},"job_type_ref":{"description":"Job type can be used to separate jobs into any categories that are meaningful to the business. A `job_type_ref` aggregate refers to a job type on the JobType list. In a request, if a `job_type_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"print_as":{"type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"cc":{"description":"Email address that would be carbon copied or CC.","type":"string"},"suffix":{"type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_country":{"description":"The country that sales tax is collected for.","enum":["Australia","Canada","UK","US"],"type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"required":["contact_name","contact_value"],"type":"object"},"type":"array"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"job_end_date":{"description":"The date on which work for a sub-customer was completed; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.","format":"date","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"pager":{"type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_registration_number":{"description":"The tax registration number used in CA and UK.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"resale_number":{"description":"The customer’s resale number, if they have one. This number won’t affect reports or sales tax calculations.","type":"string"},"notes":{"description":"Not supported.","type":"string"},"include_ret_element":{"items":{"enum":["AccountNumber","AdditionalContactRef","AdditionalNotesRet","AltContact","AltPhone","Balance","BillAddress","BillAddressBlock","Cc","ClassRef","CompanyName","Contact","ContactsRet","CreditCardInfo","CreditLimit","CurrencyRef","CustomerTypeRef","DataExtRet","DeliveryMethod","EditSequence","Email","ExternalGUID","Fax","FirstName","FullName","IsActive","IsStatementWithParent","ItemSalesTaxRef","JobDesc","JobEndDate","JobProjectedEndDate","JobStartDate","JobStatus","JobTitle","JobTypeRef","LastName","ListID","MiddleName","Mobile","Name","Notes","OwnerID","Pager","ParentRef","Phone","PreferredDeliveryMethod","PreferredPaymentMethodRef","PriceLevelRef","PrintAs","ResaleNumber","SalesRepRef","SalesTaxCodeRef","SalesTaxCountry","Salutation","ShipAddress","ShipAddressBlock","ShipToAddress","Sublevel","Suffix","TaxRegistrationNumber","TermsRef","TimeCreated","TimeModified","TotalBalance","TxnID","TxnNumber"],"type":"string"},"type":"array"},"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"},"preferred_delivery_method":{"description":"Preference for how invoices are delivered.","enum":["Email","Fax","None"],"type":"string"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateCustomer_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update customer","tags":["Customers"]}},"/connections/{connection_id}/aging-reports":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listAgingReports_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `AgingReportQueryRq`, from qbXML 2.0.\n\nAn aging report tracks outstanding invoices (in accounts receivable accounts) and unpaid bills (in accounts payable accounts). Notice that you could use a collections report instead of the aging query, if that better suited your needs.\n\nIntuit's reference: [AgingReportQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/agingreportquery).","operationId":"listAgingReports","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"The type of aging report being queried.","in":"query","name":"aging_report_type","required":true,"schema":{"enum":["APAgingDetail","APAgingSummary","ARAgingDetail","ARAgingSummary","CollectionsReport"],"type":"string"}},{"description":"Set `display_report` to true to display this report within the QuickBooks UI. (Default is false.) If you want the request to display the report without returning any data to your application, set the responseData attribute to includeNone.","in":"query","name":"display_report","required":false,"schema":{"type":"boolean"}},{"description":"Indicates whether this report should include all accounts or just those that are currently in use.","in":"query","name":"include_accounts","required":false,"schema":{"enum":["All","InUse"],"type":"string"}},{"in":"query","name":"include_column","required":false,"schema":{"items":{"enum":["Account","Aging","Amount","AmountDifference","AverageCost","BilledDate","BillingStatus","CalculatedAmount","Class","ClearedStatus","CostPrice","Credit","Currency","Date","Debit","DeliveryDate","DueDate","EstimateActive","ExchangeRate","FOB","IncomeSubjectToTax","Invoiced","Item","ItemDesc","LastModifiedBy","LatestOrPriorState","Memo","ModifiedTime","Name","NameAccountNumber","NameAddress","NameCity","NameContact","NameEmail","NameFax","NamePhone","NameState","NameZip","OpenBalance","OriginalAmount","PONumber","PaidAmount","PaidStatus","PaidThroughDate","PaymentMethod","PayrollItem","PrintStatus","ProgressAmount","ProgressPercent","Quantity","QuantityAvailable","QuantityOnHand","QuantityOnSalesOrder","ReceivedQuantity","RefNumber","RunningBalance","SSNOrTaxID","SalesRep","SalesTaxCode","SerialOrLotNumber","ShipDate","ShipMethod","SourceName","SplitAccount","TaxLine","TaxTableVersion","Terms","TxnID","TxnNumber","TxnType","UnitPrice","UserEdit","ValueOnHand","WageBase","WageBaseTips"],"type":"string"},"type":"array"}},{"description":"Allows you to query for a specified account type or for specific list elements.","in":"query","name":"report_account_filter","required":false,"schema":{"oneOf":[{"properties":{"account_type_filter":{"description":"Allows you to report on a specific account type.","enum":["APAndSalesTax","APOrCreditCard","ARAndAP","AccountsPayable","AccountsReceivable","AllowedFor1099","Asset","BalanceSheet","Bank","BankAndARAndAPAndUF","BankAndUF","CostOfSales","CreditCard","CurrentAsset","CurrentAssetAndExpense","CurrentLiability","Equity","EquityAndIncomeAndExpense","ExpenseAndOtherExpense","FixedAsset","IncomeAndExpense","IncomeAndOtherIncome","Liability","LiabilityAndEquity","LongTermLiability","NonPosting","OrdinaryExpense","OrdinaryIncome","OrdinaryIncomeAndCOGS","OrdinaryIncomeAndExpense","OtherAsset","OtherCurrentAsset","OtherCurrentLiability","OtherExpense","OtherIncome","OtherIncomeOrExpense"],"type":"string"}},"required":["account_type_filter"],"title":"AccountTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"The report will return aging information up to the `report_aging_as_of` date.","in":"query","name":"report_aging_as_of","required":false,"schema":{"enum":["ReportEndDate","Today"],"type":"string"}},{"description":"Allows you to query for a specified class. Classes can be used to separate transactions into meaningful categories. (For example, transactions could be classified according to department, business location, or type of work.) In QuickBooks, class tracking is off by default.","in":"query","name":"report_class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"The time period covered by this report.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_date_macro","required":false,"schema":{"enum":["All","LastMonth","LastMonthToDate","LastQuarter","LastQuarterToDate","LastWeek","LastWeekToDate","LastYear","LastYearToDate","NextFourWeeks","NextMonth","NextQuarter","NextWeek","NextYear","ThisMonth","ThisMonthToDate","ThisQuarter","ThisQuarterToDate","ThisWeek","ThisWeekToDate","ThisYear","ThisYearToDate","Today","Yesterday"],"type":"string"}},{"description":"The level of detail to include in the report.","in":"query","name":"report_detail_level_filter","required":false,"schema":{"enum":["All","AllExceptSummary","SummaryOnly"],"type":"string"}},{"description":"Allows you to query for a specified name type (customer, employee, vendor, or other) or query for specific list elements.","in":"query","name":"report_entity_filter","required":false,"schema":{"oneOf":[{"properties":{"entity_type_filter":{"description":"Allows you to report on a specific name type.","enum":["Customer","Employee","OtherName","Vendor"],"type":"string"}},"required":["entity_type_filter"],"title":"EntityTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Allows you to query for a specified item type (for example, discount, inventory, or non-inventory) or query for specific list elements.","in":"query","name":"report_item_filter","required":false,"schema":{"oneOf":[{"properties":{"item_type_filter":{"description":"Allows you to report on a specific item type.","enum":["AllExceptFixedAsset","Assembly","Discount","FixedAsset","Inventory","InventoryAndAssembly","NonInventory","OtherCharge","Payment","Sales","SalesTax","Service"],"type":"string"}},"required":["item_type_filter"],"title":"ItemTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Returns reports that were modified between these two dates (inclusive). The range of acceptable dates for both `from_report_modified_date` and `to_report_modified_date` is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).\n\nChoose at most one of: `report_modified_date_range_filter`, or `report_modified_date_range_macro`.","in":"query","name":"report_modified_date_range_filter","required":false,"schema":{"properties":{"from_report_modified_date":{"description":"Selects information from this date and later. The range of acceptable dates is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).","format":"date","type":"string"},"to_report_modified_date":{"description":"Selects information created on this date or earlier. The range of acceptable dates is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).","format":"date","type":"string"}},"type":"object"}},{"description":"The time period covered by this report.\n\nChoose at most one of: `report_modified_date_range_filter`, or `report_modified_date_range_macro`.","in":"query","name":"report_modified_date_range_macro","required":false,"schema":{"enum":["All","LastMonth","LastMonthToDate","LastQuarter","LastQuarterToDate","LastWeek","LastWeekToDate","LastYear","LastYearToDate","NextFourWeeks","NextMonth","NextQuarter","NextWeek","NextYear","ThisMonth","ThisMonthToDate","ThisQuarter","ThisQuarterToDate","ThisWeek","ThisWeekToDate","ThisYear","ThisYearToDate","Today","Yesterday"],"type":"string"}},{"description":"If you omit both `to_report_date` and `from_report_date`, the report will cover the current fiscal year to date.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_period","required":false,"schema":{"properties":{"from_report_date":{"description":"Selects information from this date and later. The range of acceptable `from_report_date` and `to_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"},"to_report_date":{"description":"Selects information created on this date or earlier. The range of acceptable `to_report_date` and `from_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"}},"type":"object"}},{"description":"Allows you to query for posting reports, non-posting reports, or reports that are either one.","in":"query","name":"report_posting_status_filter","required":false,"schema":{"enum":["Either","NonPosting","Posting"],"type":"string"}},{"description":"Allows you to report on specific transaction types (for example, charge, check, deposit, or estimate).","in":"query","name":"report_txn_type_filter","required":false,"schema":{"properties":{"txn_type_filter":{"items":{"enum":["ARRefundCreditCard","All","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"},"type":"array"}},"required":["txn_type_filter"],"type":"object"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listAgingReports_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List aging reports","tags":["Aging Reports"]}},"/connections/{connection_id}/job-types":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listJobTypes_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `JobTypeQueryRq`.\n\nQueries for the specified job type or set of job types.\n\nIntuit's reference: [JobTypeQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/jobtypequery).","operationId":"listJobTypes","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["EditSequence","FullName","IsActive","ListID","Name","ParentRef","Sublevel","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listJobTypes_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List job types","tags":["Job Types"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createJobType_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `JobTypeAddRq`. The `job_type_add` wrapper from qbXML is also accepted.\n\nAdds a job type. A job type can be used to separate jobs into any categories that are meaningful to the business. A JobTypeRef aggregate refers to a job type on the JobType list. In a request, if a JobTypeRef aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.\n\nIntuit's reference: [JobTypeAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/jobtypeadd).","operationId":"createJobType","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"Remodel"},"schema":{"properties":{"include_ret_element":{"items":{"enum":["EditSequence","ExternalGUID","FullName","IsActive","ListID","Name","OwnerID","ParentRef","Sublevel","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createJobType_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create job type","tags":["Job Types"]}},"/connections/{connection_id}/simulator/reset":{"post":{"description":"Beta: simulated connections don't match real QuickBooks in every case yet. Puts the fake company file back to its seeded state and clears every fault.","operationId":"resetSimulator","parameters":[{"description":"The connection to act on.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"company":{"description":"A summary of the fake company file's contents.","properties":{"company_name":{"type":"string"},"lists":{"additionalProperties":{"type":"integer"},"description":"Record counts by list type, e.g. `{\"Customer\": 3}`.","type":"object"},"open_iterators":{"type":"integer"},"transactions":{"additionalProperties":{"type":"integer"},"description":"Record counts by transaction type.","type":"object"}},"type":"object"},"connection_id":{"format":"uuid","type":"string"},"faults":{"additionalProperties":true,"description":"The faults currently set (see the requestBody of \"Set simulator faults\" for what each key accepts).","type":"object"},"links":{"properties":{"connection":{"format":"uri","type":"string"},"ui":{"format":"uri","type":"string"}},"type":"object"}},"type":"object"}},"type":"object"}}},"description":"Back to the seeded company, faults cleared"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"apiKey":[]}],"summary":"Reset the simulator","tags":["Connections"],"x-mint":{"metadata":{"tag":"Beta"}}}},"/connections/{connection_id}/price-levels":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listPriceLevels_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PriceLevelQueryRq`, from qbXML 4.0.\n\nQueries for the specified price level or set of price levels.\n\nIntuit's reference: [PriceLevelQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/pricelevelquery).","operationId":"listPriceLevels","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `currency_filter`, `from_modified_date`, `item_ref`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `currency_filter`, `from_modified_date`, `item_ref`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `currency_filter`, `from_modified_date`, `item_ref`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `currency_filter`, `from_modified_date`, `item_ref`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["CurrencyRef","EditSequence","IsActive","ListID","Name","PriceLevelFixedPercentage","PriceLevelPerItemRet","PriceLevelType","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `currency_filter`, `from_modified_date`, `item_ref`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"item_ref","required":false,"schema":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `currency_filter`, `from_modified_date`, `item_ref`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `currency_filter`, `from_modified_date`, `item_ref`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `currency_filter`, `from_modified_date`, `item_ref`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `currency_filter`, `from_modified_date`, `item_ref`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `currency_filter`, `from_modified_date`, `item_ref`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listPriceLevels_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List price levels","tags":["Price Levels"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createPriceLevel_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PriceLevelAddRq`, from qbXML 4.0. The `price_level_add` wrapper from qbXML is also accepted.\n\nAdds a price level. You can use price levels to specify custom pricing for specific customers. Once you create a price level for a customer, QuickBooks will automatically use the custom price in new invoices, sales receipts, sales orders or credit memos for that customer. You can override this automatic feature, however, when you create the invoices, sales receipts, etc.)\n\nThe user can now specify a price level on line items in the following supported sales transactions: invoices, sales receipts, credit memos, and sales orders.\n\nNotice that the response data for the affected sales transaction doesn’t list the price level that was used. The response simply lists the Rate for the item, which was set using the price level.\n\nThe `currency_ref` should only be used with “per item” price levels.\n\nIntuit's reference: [PriceLevelAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/priceleveladd).","operationId":"createPriceLevel","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"Wholesale","price_level_fixed_percentage":10.0},"schema":{"oneOf":[{"properties":{"price_level_fixed_percentage":{"description":"When you create a price level, you must specify whether it is a fixed percentage or a per item price level. Once you create the price level, you can’t change this. QuickBooks Pro and greater versions support fixed percentages, but only QuickBooks Premier and Enterprise support the per item price level. Where is this discount applied if Price Levels are enabled in QuickBooks preferences?","type":"number"}},"required":["price_level_fixed_percentage"],"title":"PriceLevelFixedPercentage","type":"object"},{"not":{"properties":{"currency_ref":false,"price_level_per_item":false}},"properties":{"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"price_level_per_item":{"items":{"not":{"anyOf":[{"required":["custom_price","custom_price_percent"]},{"required":["custom_price","adjust_percentage"]},{"required":["custom_price","adjust_relative_to"]},{"required":["custom_price_percent","adjust_percentage"]},{"required":["custom_price_percent","adjust_relative_to"]},{"properties":{"adjust_percentage":false,"adjust_relative_to":false,"custom_price":false,"custom_price_percent":false}}]},"properties":{"adjust_percentage":{"description":"If you don’t want to apply a custom price (for price levels) or custom rate (for billing rates), you can apply an adjusted price discount using the pair of fields `adjust_percentage` and `adjust_relative_to` (AdjustBillingRateRelativeTo for billing rates).\n\nChoose exactly one of: the set (`custom_price`, `custom_price_percent`), or the set (`adjust_percentage`, `adjust_relative_to`). Members of a set combine with each other, not with the other choices.","type":"number"},"adjust_relative_to":{"description":"When you create a price level, you have the option to create it with a flat custom price (flat amount or percentage) or you could use PriceLevelAdjustment to apply a price discount based on either the current custom price, the standard price of the item, or the cost of the item.\n\nChoose exactly one of: the set (`custom_price`, `custom_price_percent`), or the set (`adjust_percentage`, `adjust_relative_to`). Members of a set combine with each other, not with the other choices.","enum":["Cost","CurrentCustomPrice","StandardPrice"],"type":"string"},"custom_price":{"description":"When you create a price level, you have the option to create it with a custom price that is either a fixed amount (`custom_price`) or a fixed discount percentage (`custom_price_percent`). Alternatively, instead of a flat custom price or discount, you could apply a price discount based on either the current custom price, the standard price of the item, or the cost of the item.\n\nChoose exactly one of: the set (`custom_price`, `custom_price_percent`), or the set (`adjust_percentage`, `adjust_relative_to`). Members of a set combine with each other, not with the other choices.","type":"number"},"custom_price_percent":{"description":"When you create a price level, you have the option to create it with a custom price that is either a fixed amount (`custom_price`) or a fixed discount percentage (`custom_price_percent`).\n\nChoose exactly one of: the set (`custom_price`, `custom_price_percent`), or the set (`adjust_percentage`, `adjust_relative_to`). Members of a set combine with each other, not with the other choices.","type":"number"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["item_ref"],"type":"object"},"type":"array"}},"title":"PriceLevelPerItem + CurrencyRef","type":"object"}],"properties":{"include_ret_element":{"items":{"enum":["CurrencyRef","EditSequence","ExternalGUID","IsActive","ListID","Name","OwnerID","PriceLevelFixedPercentage","PriceLevelPerItemRet","PriceLevelType","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createPriceLevel_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create price level","tags":["Price Levels"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updatePriceLevel_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PriceLevelModRq`, from qbXML 4.0. The `price_level_mod` wrapper from qbXML is also accepted.\n\nModifies a price level. The `currency_ref` should only be used with “per item” price levels.\n\nIntuit's reference: [PriceLevelMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/pricelevelmod).","operationId":"updatePriceLevel","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Wholesale"},"schema":{"not":{"anyOf":[{"required":["price_level_fixed_percentage","price_level_per_item"]},{"required":["price_level_fixed_percentage","currency_ref"]}]},"properties":{"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.\n\nChoose at most one of: `price_level_fixed_percentage`, or the set (`currency_ref`, `price_level_per_item`). Members of a set combine with each other, not with the other choices.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"include_ret_element":{"items":{"enum":["CurrencyRef","EditSequence","ExternalGUID","IsActive","ListID","Name","OwnerID","PriceLevelFixedPercentage","PriceLevelPerItemRet","PriceLevelType","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"price_level_fixed_percentage":{"description":"When you create a price level, you must specify whether it is a fixed percentage or a per item price level. Once you create the price level, you can’t change this. QuickBooks Pro and greater versions support fixed percentages, but only QuickBooks Premier and Enterprise support the per item price level. Where is this discount applied if Price Levels are enabled in QuickBooks preferences?\n\nChoose at most one of: `price_level_fixed_percentage`, or the set (`currency_ref`, `price_level_per_item`). Members of a set combine with each other, not with the other choices.","type":"number"},"price_level_per_item":{"description":"Choose at most one of: `price_level_fixed_percentage`, or the set (`currency_ref`, `price_level_per_item`). Members of a set combine with each other, not with the other choices.","items":{"not":{"anyOf":[{"required":["custom_price","custom_price_percent"]},{"required":["custom_price","adjust_percentage"]},{"required":["custom_price","adjust_relative_to"]},{"required":["custom_price_percent","adjust_percentage"]},{"required":["custom_price_percent","adjust_relative_to"]},{"properties":{"adjust_percentage":false,"adjust_relative_to":false,"custom_price":false,"custom_price_percent":false}}]},"properties":{"adjust_percentage":{"description":"If you don’t want to apply a custom price (for price levels) or custom rate (for billing rates), you can apply an adjusted price discount using the pair of fields `adjust_percentage` and `adjust_relative_to` (AdjustBillingRateRelativeTo for billing rates).\n\nChoose exactly one of: the set (`custom_price`, `custom_price_percent`), or the set (`adjust_percentage`, `adjust_relative_to`). Members of a set combine with each other, not with the other choices.","type":"number"},"adjust_relative_to":{"description":"When you create a price level, you have the option to create it with a flat custom price (flat amount or percentage) or you could use PriceLevelAdjustment to apply a price discount based on either the current custom price, the standard price of the item, or the cost of the item.\n\nChoose exactly one of: the set (`custom_price`, `custom_price_percent`), or the set (`adjust_percentage`, `adjust_relative_to`). Members of a set combine with each other, not with the other choices.","enum":["Cost","CurrentCustomPrice","StandardPrice"],"type":"string"},"custom_price":{"description":"When you create a price level, you have the option to create it with a custom price that is either a fixed amount (`custom_price`) or a fixed discount percentage (`custom_price_percent`). Alternatively, instead of a flat custom price or discount, you could apply a price discount based on either the current custom price, the standard price of the item, or the cost of the item.\n\nChoose exactly one of: the set (`custom_price`, `custom_price_percent`), or the set (`adjust_percentage`, `adjust_relative_to`). Members of a set combine with each other, not with the other choices.","type":"number"},"custom_price_percent":{"description":"When you create a price level, you have the option to create it with a custom price that is either a fixed amount (`custom_price`) or a fixed discount percentage (`custom_price_percent`).\n\nChoose exactly one of: the set (`custom_price`, `custom_price_percent`), or the set (`adjust_percentage`, `adjust_relative_to`). Members of a set combine with each other, not with the other choices.","type":"number"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["item_ref"],"type":"object"},"type":"array"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updatePriceLevel_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update price level","tags":["Price Levels"]}},"/connections/{connection_id}/payroll-summary-reports":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listPayrollSummaryReports_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollSummaryReportQueryRq`, from qbXML 3.0.\n\nThis report returns information from any of three QuickBooks payroll reports:\n\n- **Payroll summary report:** This report shows the total wages, taxes withheld, deductions from net pay, additions to net pay, and employer-paid taxes and contributions for each employee on the payroll.\n- **Employee earnings summary report:** This report shows information similar to the payroll summary report, but in a different layout. The report has a row for each employee and a column for each payroll item.\n- **Payroll liability balances report:** This report lists the payroll liabilities the QuickBooks company owes to various agencies, such as the federal government, your state government, insurance plan administrators, labor unions, etc. The report covers unpaid liabilities incurred during the period of time shown in the From and To fields. If the company paid a liability incurred within the date range of the report, the report omits that liability, even if the payment occurred after the ending date of the report.\n\nPayroll Summary Reports can be generated if your application is accessing a company file that is currently signed up for a subscription to a payroll service. (If your application isn’t signed up, it will receive an error when it attempts to generate a report in this category.)\n\nThe restrictions noted above about payroll reports requiring the use of the Intuit Payroll service don’t apply to the QuickBooks sample companies. You can still test out these reports on the sample companies without subscribing to the payroll service. For all other companies, however, the company must be subscribed.\n\nIntuit's reference: [PayrollSummaryReportQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollsummaryreportquery).","operationId":"listPayrollSummaryReports","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Set `display_report` to true to display this report within the QuickBooks UI. (Default is false.) If you want the request to display the report without returning any data to your application, set the responseData attribute to includeNone.","in":"query","name":"display_report","required":false,"schema":{"type":"boolean"}},{"description":"The default value is false, which means that the report won’t include any subcolumn information. To include all available types of subcolumns for this report, set `include_subcolumns` to true. The SDK won’t return subcolumn information for data that can be easily computed. (For example, the SDK doesn’t return the “percent of row” column.)","in":"query","name":"include_subcolumns","required":false,"schema":{"type":"boolean"}},{"description":"The type of payroll report: psrtEmployeeEarningsSummary This report shows information similar to the payroll summary report, but in a different layout.","in":"query","name":"payroll_summary_report_type","required":true,"schema":{"enum":["EmployeeEarningsSummary","PayrollLiabilityBalances","PayrollSummary"],"type":"string"}},{"description":"Allows you to query for a specified account type or for specific list elements.","in":"query","name":"report_account_filter","required":false,"schema":{"oneOf":[{"properties":{"account_type_filter":{"description":"Allows you to report on a specific account type.","enum":["APAndSalesTax","APOrCreditCard","ARAndAP","AccountsPayable","AccountsReceivable","AllowedFor1099","Asset","BalanceSheet","Bank","BankAndARAndAPAndUF","BankAndUF","CostOfSales","CreditCard","CurrentAsset","CurrentAssetAndExpense","CurrentLiability","Equity","EquityAndIncomeAndExpense","ExpenseAndOtherExpense","FixedAsset","IncomeAndExpense","IncomeAndOtherIncome","Liability","LiabilityAndEquity","LongTermLiability","NonPosting","OrdinaryExpense","OrdinaryIncome","OrdinaryIncomeAndCOGS","OrdinaryIncomeAndExpense","OtherAsset","OtherCurrentAsset","OtherCurrentLiability","OtherExpense","OtherIncome","OtherIncomeOrExpense"],"type":"string"}},"required":["account_type_filter"],"title":"AccountTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Specifies the type of year that will be used for this report.","in":"query","name":"report_calendar","required":false,"schema":{"enum":["CalendarYear","FiscalYear","TaxYear"],"type":"string"}},{"description":"Allows you to query for a specified class. Classes can be used to separate transactions into meaningful categories. (For example, transactions could be classified according to department, business location, or type of work.) In QuickBooks, class tracking is off by default.","in":"query","name":"report_class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"The time period covered by this report.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_date_macro","required":false,"schema":{"enum":["All","LastMonth","LastMonthToDate","LastQuarter","LastQuarterToDate","LastWeek","LastWeekToDate","LastYear","LastYearToDate","NextFourWeeks","NextMonth","NextQuarter","NextWeek","NextYear","ThisMonth","ThisMonthToDate","ThisQuarter","ThisQuarterToDate","ThisWeek","ThisWeekToDate","ThisYear","ThisYearToDate","Today","Yesterday"],"type":"string"}},{"description":"The level of detail to include in the report.","in":"query","name":"report_detail_level_filter","required":false,"schema":{"enum":["All","AllExceptSummary","SummaryOnly"],"type":"string"}},{"description":"Allows you to query for a specified name type (customer, employee, vendor, or other) or query for specific list elements.","in":"query","name":"report_entity_filter","required":false,"schema":{"oneOf":[{"properties":{"entity_type_filter":{"description":"Allows you to report on a specific name type.","enum":["Customer","Employee","OtherName","Vendor"],"type":"string"}},"required":["entity_type_filter"],"title":"EntityTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Allows you to query for a specified item type (for example, discount, inventory, or non-inventory) or query for specific list elements.","in":"query","name":"report_item_filter","required":false,"schema":{"oneOf":[{"properties":{"item_type_filter":{"description":"Allows you to report on a specific item type.","enum":["AllExceptFixedAsset","Assembly","Discount","FixedAsset","Inventory","InventoryAndAssembly","NonInventory","OtherCharge","Payment","Sales","SalesTax","Service"],"type":"string"}},"required":["item_type_filter"],"title":"ItemTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Returns reports that were modified between these two dates (inclusive). The range of acceptable dates for both `from_report_modified_date` and `to_report_modified_date` is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).\n\nChoose at most one of: `report_modified_date_range_filter`, or `report_modified_date_range_macro`.","in":"query","name":"report_modified_date_range_filter","required":false,"schema":{"properties":{"from_report_modified_date":{"description":"Selects information from this date and later. The range of acceptable dates is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).","format":"date","type":"string"},"to_report_modified_date":{"description":"Selects information created on this date or earlier. The range of acceptable dates is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).","format":"date","type":"string"}},"type":"object"}},{"description":"The time period covered by this report.\n\nChoose at most one of: `report_modified_date_range_filter`, or `report_modified_date_range_macro`.","in":"query","name":"report_modified_date_range_macro","required":false,"schema":{"enum":["All","LastMonth","LastMonthToDate","LastQuarter","LastQuarterToDate","LastWeek","LastWeekToDate","LastYear","LastYearToDate","NextFourWeeks","NextMonth","NextQuarter","NextWeek","NextYear","ThisMonth","ThisMonthToDate","ThisQuarter","ThisQuarterToDate","ThisWeek","ThisWeekToDate","ThisYear","ThisYearToDate","Today","Yesterday"],"type":"string"}},{"description":"If you omit both `to_report_date` and `from_report_date`, the report will cover the current fiscal year to date.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_period","required":false,"schema":{"properties":{"from_report_date":{"description":"Selects information from this date and later. The range of acceptable `from_report_date` and `to_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"},"to_report_date":{"description":"Selects information created on this date or earlier. The range of acceptable `to_report_date` and `from_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"}},"type":"object"}},{"description":"Allows you to query for posting reports, non-posting reports, or reports that are either one.","in":"query","name":"report_posting_status_filter","required":false,"schema":{"enum":["Either","NonPosting","Posting"],"type":"string"}},{"description":"Specifies whether you want the report to include only columns with active information, only columns with nonzero values, or all columns regardless of their content or active status.","in":"query","name":"return_columns","required":false,"schema":{"enum":["ActiveOnly","All","NonZero"],"type":"string"}},{"description":"Specifies whether you want the report to include only rows with active information, only rows with nonzero values, or all rows regardless of their content or active status.","in":"query","name":"return_rows","required":false,"schema":{"enum":["ActiveOnly","All","NonZero"],"type":"string"}},{"description":"`summarize_columns_by` determines which data the report calculates and how the columns will be labeled across the top of the report. For example, if you set the value to scbTwoWeek, the report’s column labels might be “Feb 10-23, 02,” “Feb 24-Mar9, 02,” and so on.","in":"query","name":"summarize_columns_by","required":false,"schema":{"enum":["Account","BalanceSheet","Class","Customer","CustomerType","Day","Employee","FourWeek","HalfMonth","IncomeStatement","ItemDetail","ItemType","Month","Payee","PaymentMethod","PayrollItemDetail","PayrollYtdDetail","Quarter","SalesRep","SalesTaxCode","ShipMethod","Terms","TotalOnly","TwoWeek","Vendor","VendorType","Week","Year"],"type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listPayrollSummaryReports_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List payroll summary reports","tags":["Payroll Summary Reports"]}},"/connections/{connection_id}/payroll-item-taxes":{"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createPayrollItemTax_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollItemTaxAddRq`. The `payroll_item_tax_add` wrapper from qbXML is also accepted.\n\nIntuit's reference: [PayrollItemTaxAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollitemtaxadd).","operationId":"createPayrollItemTax","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"liability_account_ref":{"full_name":"Payroll Liabilities"},"name":"State Withholding","payment_template_ref":{"full_name":"Example"},"payroll_item_detail_type_value":1,"vendor_ref":{"full_name":"Northwind Supplies"}},"schema":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["EditSequence","ExpenseAccountRef","IsActive","LiabilityAccountRef","LiabilityPaymentSchedule","Limit","ListID","Name","PaymentTemplateRef","PayrollItemDetailTypeValue","Rate","RateChange","RatePercent","State","TaxCalculatedBasedOn","TimeCreated","TimeModified","VendorAccountNumber","VendorRef","W2TrackingTypeValue"],"type":"string"},"type":"array"},"is_active":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"required":["payment_schedule_type"],"type":"object"},"limit":{"type":"number"},"name":{"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_change":{"items":{"properties":{"rate_percent":{"type":"number"},"sunset_date":{"format":"date","type":"string"}},"required":["rate_percent","sunset_date"],"type":"object"},"type":"array"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"state":{"type":"string"},"tax_calculated_based_on":{"enum":["Compensation","HoursAll","HoursWorked","Quantity"],"type":"string"},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"w2_tracking_type_value":{"type":"integer"}},"required":["liability_account_ref","name","payment_template_ref","payroll_item_detail_type_value"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createPayrollItemTax_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create payroll item tax","tags":["Payroll Item Taxes"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updatePayrollItemTax_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollItemTaxModRq`. The `payroll_item_tax_mod` wrapper from qbXML is also accepted.\n\nIntuit's reference: [PayrollItemTaxMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollitemtaxmod).","operationId":"updatePayrollItemTax","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"State Withholding","vendor_ref":{"full_name":"Northwind Supplies"}},"schema":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"edit_sequence":{"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["EditSequence","ExpenseAccountRef","IsActive","LiabilityAccountRef","LiabilityPaymentSchedule","Limit","ListID","Name","PaymentTemplateRef","PayrollItemDetailTypeValue","Rate","RateChange","RatePercent","State","TaxCalculatedBasedOn","TimeCreated","TimeModified","VendorAccountNumber","VendorRef","W2TrackingTypeValue"],"type":"string"},"type":"array"},"is_active":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"required":["payment_schedule_type"],"type":"object"},"limit":{"type":"number"},"list_id":{"type":"string"},"name":{"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_change":{"items":{"properties":{"rate_percent":{"type":"number"},"sunset_date":{"format":"date","type":"string"}},"required":["rate_percent","sunset_date"],"type":"object"},"type":"array"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"state":{"type":"string"},"tax_calculated_based_on":{"enum":["Compensation","HoursAll","HoursWorked","Quantity"],"type":"string"},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"w2_tracking_type_value":{"type":"integer"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updatePayrollItemTax_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update payroll item tax","tags":["Payroll Item Taxes"]}},"/connections/{connection_id}/accounts":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listAccounts_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `AccountQueryRq`.\n\nFinds accounts in the chart of accounts, all of them or those of one `account_type`, each with its parent account. It returns an account's own details, not its transactions. When the company shows account numbers, a `full_name` made of digits can match the account with that number rather than that name.\n\nIf you are querying for an account whose `full_name` contains a number, the query might return an account that has a matching account number rather than a matching `full_name`. For example, if you are querying for an account named 12345, and 12345 happens to be the account number of a totally different account, the query won’t return what you asked for (the account named 12345), but instead will return the account with the account number 12345.\n\nThis problem won’t happen if:\n\n- the “show account numbers” preference is turned off in the QuickBooks file, or\n- the account name exactly matches the account number. (In this case, query would return the correct account either way.)\n\nTo avoid this problem:\n\n- Don’t name an account using a number unless the number exactly matches the account’s account number.\n- If an account name must contain a number that doesn’t match its own account number, have the QuickBooks user change the account’s name slightly, for example to 12345a.\n\nIntuit's reference: [AccountQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/accountquery).","operationId":"listAccounts","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"The type of QuickBooks account. You can’t create or modify a non-posting account through the SDK, because QuickBooks creates these accounts behind the scenes. This means that you can’t send an AccountAdd request with an `account_type` of NonPosting.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`account_type`, `active_status`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_type","required":false,"schema":{"items":{"enum":["AccountsPayable","AccountsReceivable","Bank","CostOfGoodsSold","CreditCard","Equity","Expense","FixedAsset","Income","LongTermLiability","NonPosting","OtherAsset","OtherCurrentAsset","OtherCurrentLiability","OtherExpense","OtherIncome"],"type":"string"},"type":"array"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`account_type`, `active_status`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`account_type`, `active_status`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`account_type`, `active_status`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`account_type`, `active_status`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AccountNumber","AccountType","Balance","BankNumber","CashFlowClassification","CurrencyRef","DataExtRet","Desc","DetailAccountType","EditSequence","FullName","IsActive","IsTaxAccount","LastCheckNumber","ListID","Name","ParentRef","SalesTaxCodeRef","SpecialAccountType","Sublevel","TaxLineInfoRet","TimeCreated","TimeModified","TotalBalance"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`account_type`, `active_status`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`account_type`, `active_status`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`account_type`, `active_status`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`account_type`, `active_status`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`account_type`, `active_status`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listAccounts_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List accounts","tags":["Accounts"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createAccount_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `AccountAddRq`. The `account_add` wrapper from qbXML is also accepted.\n\nThis message allows you to perform the same activities as a user does in the QB New Account form, which can be accessed in QB by selecting Lists->Chart of Accounts->Accounts->New. If you want the account to be a subaccount to an existing account, similar to using the SubAccount checkbox and selection list drop down in the New Account form, you use the `parent_ref` aggregate. Notice that the `parent_ref` can take either the parent account’s `list_id` or `full_name`.\n\nIt is important to note that the parent account specified in the `parent_ref` must have the same account type (`account_type`) of the child account that you are creating. (The `account_type` field maps to the Type pulldown menu in the New Accounts field.) The `account_number` is NOT the account number assigned by your bank or other entity. (That number is specified in the `bank_number` field.) The account number is simply part of a numbering scheme used by accounting systems to help provide a visual hierarchy and ordering of all of the accounts in a Chart of Accounts. QuickBooks provides this functionality for those who need or want it, but by default has this functionality turned off. The `account_number` field maps to the Number field in the New Account form, which appears only if the Accounting preferences for the company have been set to use account numbering. By default, account numbers aren’t used. In the SDK, you can set the account numbers if you want, even if the preference for it has been turned off. The numbers would then appear later if the user turned this preference on. In the `open_balance` field for certain types of new Accounts, you may want to leave the opening balance at 0 if you are going to fund the account from another account. That process will effectively create the opening balance. How do you increase and decrease amounts in bank accounts?\n\nIntuit's reference, linked below, has the rest of these notes.\n\nIntuit's reference: [AccountAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/accountadd).","operationId":"createAccount","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"account_type":"Expense","name":"Office Supplies"},"schema":{"properties":{"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"},"account_type":{"description":"The type of QuickBooks account. You can’t create or modify a non-posting account through the SDK, because QuickBooks creates these accounts behind the scenes. This means that you can’t send an AccountAdd request with an `account_type` of NonPosting.","enum":["AccountsPayable","AccountsReceivable","Bank","CostOfGoodsSold","CreditCard","Equity","Expense","FixedAsset","Income","LongTermLiability","NonPosting","OtherAsset","OtherCurrentAsset","OtherCurrentLiability","OtherExpense","OtherIncome"],"type":"string"},"bank_number":{"description":"The bank account number or an identifying note about the account. If a `bank_number` exists in a QuickBooks company file, it will only be returned to applications that have been granted permission to access sensitive data and that are using SDK v2.0 or greater.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"detail_account_type":{"enum":["AP","AR","AccumulatedAdjustment","AccumulatedAmortization","AccumulatedAmortizationOfOtherAssets","AccumulatedDepletion","AccumulatedDepreciation","AdvertisingOrPromotional","AllowanceForBadDebts","Amortization","Auto","BadDebts","BankCharges","Buildings","CashOnHand","CharitableContributions","Checking","CommonStock","CostOfLabor","CostOfLaborCOS","CreditCard","DepletableAssets","Depreciation","DevelopmentCosts","DiscountsOrRefundsGiven","DividendIncome","DuesAndSubscriptions","EmployeeCashAdvances","Entertainment","EntertainmentMeals","EquipmentRental","EquipmentRentalCOS","FederalIncomeTaxPayable","FurnitureAndFixtures","Goodwill","Insurance","InsurancePayable","IntangibleAssets","InterestEarned","InterestPaid","Inventory","InvestmentMortgageOrRealEstateLoans","InvestmentOther","InvestmentTaxExemptSecurities","InvestmentUSGovObligations","Land","LeaseBuyout","LeaseholdImprovements","LegalAndProfessionalFees","Licenses","LineOfCredit","LoanPayable","LoansToOfficers","LoansToOthers","LoansToStockholders","MachineryAndEquipment","MoneyMarket","NonProfitIncome","NotesPayable","OfficeOrGeneralAdministrativeExpenses","OpeningBalanceEquity","OrganizationalCosts","OtherCostsOfServiceCOS","OtherCurrentAssets","OtherCurrentLiab","OtherFixedAssets","OtherInvestmentIncome","OtherLongTermAssets","OtherLongTermLiab","OtherMiscExpense","OtherMiscIncome","OtherMiscServiceCost","OtherPrimaryIncome","OwnersEquity","PaidInCapitalOrSurplus","PartnerContributions","PartnerDistributions","PartnersEquity","PayrollClearing","PayrollExpenses","PayrollTaxPayable","PenaltiesAndSettlements","PreferredStock","PrepaidExpenses","PrepaidExpensesPayable","PromotionalMeals","RentOrLeaseOfBuildings","RentsHeldInTrust","RentsInTrustLiab","RepairAndMaintenance","Retainage","RetainedEarnings","SalesOfProductIncome","SalesTaxPayable","Savings","SecurityDeposits","ServiceOrFeeIncome","ShareholderNotesPayable","ShippingFreightAndDelivery","ShippingFreightAndDeliveryCOS","StateOrLocalIncomeTaxPayable","SuppliesAndMaterials","SuppliesAndMaterialsCOGS","TaxExemptInterest","TaxesPaid","Travel","TravelMeals","TreasuryStock","TrustAccounts","TrustAccountsLiab","UndepositedFunds","Utilities","Vehicles"],"type":"string"},"include_ret_element":{"items":{"enum":["AccountNumber","AccountType","Balance","BankNumber","CashFlowClassification","CurrencyRef","DataExtRet","Desc","DetailAccountType","EditSequence","ExternalGUID","FullName","IsActive","IsTaxAccount","LastCheckNumber","ListID","Name","OwnerID","ParentRef","SalesTaxCodeRef","SpecialAccountType","Sublevel","TaxLineInfoRet","TimeCreated","TimeModified","TotalBalance","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"open_balance":{"description":"The amount of money in, or the value of, this account as of `open_balance_date`. On a bank statement, the amount of money in the account at the beginning of the statement period.","type":"number"},"open_balance_date":{"description":"The date when an opening balance was entered for this account.","format":"date","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_line_id":{"description":"An internal representation of the tax line associated with this account.","type":"integer"}},"required":["account_type","name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createAccount_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create account","tags":["Accounts"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateAccount_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `AccountModRq`, from qbXML 6.0. The `account_mod` wrapper from qbXML is also accepted.\n\nModifies an Account.\n\nIntuit's reference: [AccountMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/accountmod).","operationId":"updateAccount","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Office Supplies"},"schema":{"properties":{"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"},"account_type":{"description":"The type of QuickBooks account. You can’t create or modify a non-posting account through the SDK, because QuickBooks creates these accounts behind the scenes. This means that you can’t send an AccountAdd request with an `account_type` of NonPosting.","enum":["AccountsPayable","AccountsReceivable","Bank","CostOfGoodsSold","CreditCard","Equity","Expense","FixedAsset","Income","LongTermLiability","NonPosting","OtherAsset","OtherCurrentAsset","OtherCurrentLiability","OtherExpense","OtherIncome"],"type":"string"},"bank_number":{"description":"The bank account number or an identifying note about the account. If a `bank_number` exists in a QuickBooks company file, it will only be returned to applications that have been granted permission to access sensitive data and that are using SDK v2.0 or greater.","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"include_ret_element":{"items":{"enum":["AccountNumber","AccountType","Balance","BankNumber","CashFlowClassification","CurrencyRef","DataExtRet","Desc","DetailAccountType","EditSequence","ExternalGUID","FullName","IsActive","IsTaxAccount","LastCheckNumber","ListID","Name","OwnerID","ParentRef","SalesTaxCodeRef","SpecialAccountType","Sublevel","TaxLineInfoRet","TimeCreated","TimeModified","TotalBalance","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"open_balance":{"description":"The amount of money in, or the value of, this account as of `open_balance_date`. On a bank statement, the amount of money in the account at the beginning of the statement period.","type":"number"},"open_balance_date":{"description":"The date when an opening balance was entered for this account.","format":"date","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_line_id":{"description":"An internal representation of the tax line associated with this account.","type":"integer"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateAccount_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update account","tags":["Accounts"]}},"/connections/{connection_id}/employees":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listEmployees_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `EmployeeQueryRq`.\n\nReturns employee data. Notice that prior to qbXML spec 4.0, an EmployeeQueryRq would return a permissions error if the currently logged in QuickBooks user didn’t have “Payroll and Employees” permission. This would occur even if you only needed data that wasn’t restricted.\n\nHowever, because of `include_ret_element` (beginning with qbXML spec 4.0), the situation has changed somewhat. You can use that new element to specify fields in the EmployeeRet object that don’t require “Payroll and Employees” permissions. Such a query would return the unrestricted data (such as Name) from an EmployeeQueryRq even if the logged in user lacks “Payroll and Employees” permissions.\n\nIntuit's reference: [EmployeeQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/employeequery).","operationId":"listEmployees","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AccountNumber","AdditionalContactRef","AdditionalNotesRet","AdjustedServiceDate","AltPhone","BillingRateRef","BirthDate","DataExtRet","Department","Description","DisabilityDesc","Disabled","EditSequence","Email","EmergencyContacts","EmployeeAddress","EmployeePayrollInfo","EmployeeType","Ethnicity","Exempt","ExternalGUID","Fax","FirstName","Gender","HiredDate","IsActive","JobTitle","KeyEmployee","LastName","ListID","MiddleName","MilitaryStatus","Mobile","Name","Notes","OnFile","OriginalHireDate","Pager","PagerPIN","PartOrFullTime","Phone","PrintAs","ReleasedDate","SSN","Salutation","Suffix","SupervisorRef","TargetBonus","TimeCreated","TimeModified","USCitizen","USVeteran","WorkAuthExpireDate"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listEmployees_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List employees","tags":["Employees"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createEmployee_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `EmployeeAddRq`. The `employee_add` wrapper from qbXML is also accepted.\n\nAdds an employee with personal data about the employee as well as certain payroll-related data.\n\nIntuit's reference: [EmployeeAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/employeeadd).","operationId":"createEmployee","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"email":"jane.doe@acme.example","name":"Jane Doe","phone":"555-0100"},"schema":{"properties":{"department":{"description":"The name of the department in the employment job details section.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"mobile":{"description":"Mobile telephone number.","type":"string"},"work_auth_expire_date":{"description":"Date the employee’s work authorization expires.","format":"date","type":"string"},"employee_type":{"description":"`employee_type` can affect payroll taxes for an employee. A statutory employee is a person who is defined as an employee by statute. Usually an owner or partner will be on the Other Names list, but if they are on the Employee list, their `employee_type` will be Owner.","enum":["Officer","Owner","Regular","Statutory"],"type":"string"},"disabled":{"description":"Is employee disabled?","enum":["No","Yes"],"type":"string"},"ssn":{"description":"Social security number. When you add an SSN value to an employee record, it doesn’t have to include dashes; for example, either 123-45-6789 or 123456789 would be valid.","type":"string"},"fax":{"description":"Fax number.","type":"string"},"hired_date":{"description":"An employee’s date of hire.","format":"date","type":"string"},"employee_payroll_info":{"description":"Pay information for this employee.","not":{"anyOf":[{"required":["clear_earnings","earnings"]}]},"properties":{"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"clear_earnings":{"description":"If `clear_earnings` is set to true, the earnings will be deleted for this employee.\n\nChoose at most one of: `clear_earnings`, or `earnings`.","type":"boolean"},"earnings":{"description":"Choose at most one of: `clear_earnings`, or `earnings`.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"payroll_item_wage_ref":{"description":"Each payroll wage item describes and names a payment scheme, for example, Regular Pay or Overtime Pay. A `payroll_item_wage_ref` aggregate refers to one of these wage items. In a request, if a `payroll_item_wage_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"rate":{"description":"Indicates the price of something.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"}},"required":["payroll_item_wage_ref"],"type":"object"},"type":"array"},"pay_period":{"description":"Indicates how often employees are paid. If you include a blank `pay_period` element in an EmployeeMod message, you’ll receive an error. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","enum":["Biweekly","Daily","Monthly","Quarterly","Semimonthly","Weekly","Yearly"],"type":"string"},"sick_hours":{"description":"Describes how “sick time” is accrued for this employee, along with how many sick hours the employee has accrued.","properties":{"accrual_period":{"description":"Indicates how an employee accrues time off. If you include a blank `accrual_period` element in an EmployeeMod message, you’ll receive an error. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","enum":["BeginningOfYear","EveryHourOnPaycheck","EveryPaycheck"],"type":"string"},"accrual_start_date":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the date on which sick leave or vacation hours in the current year began to accrue.","format":"date","type":"string"},"hours_accrued":{"description":"The number of hours that the employee will accrue per accrual period. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"},"hours_available":{"description":"The total number of hours currently available for the employee to use. If this value is empty, it will default to 0.","type":"string"},"hours_used":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the number of sick leave or vacation hours used in the current year.","type":"string"},"is_resetting_hours_each_new_year":{"description":"Indicates whether or not the hours accrued resets to zero at the beginning of the new year. If you include a blank `is_resetting_hours_each_new_year` element in an EmployeeMod message, you’ll receive an error.","type":"boolean"},"maximum_hours":{"description":"The maximum number of hours that the employee can accrue. (QuickBooks itself doesn’t enforce this limit, however. `hours_available` can be greater than `maximum_hours`.) The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"}},"type":"object"},"use_time_data_to_create_paychecks":{"description":"Indicates whether time data is used to create paychecks for this employee.","enum":["DoNotUseTimeData","NotSet","UseTimeData"],"type":"string"},"vacation_hours":{"description":"Describes how vacation time is accrued for this employee, along with how many vacation hours the employee has accrued.","properties":{"accrual_period":{"description":"Indicates how an employee accrues time off. If you include a blank `accrual_period` element in an EmployeeMod message, you’ll receive an error. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","enum":["BeginningOfYear","EveryHourOnPaycheck","EveryPaycheck"],"type":"string"},"accrual_start_date":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the date on which sick leave or vacation hours in the current year began to accrue.","format":"date","type":"string"},"hours_accrued":{"description":"The number of hours that the employee will accrue per accrual period. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"},"hours_available":{"description":"The total number of hours currently available for the employee to use. If this value is empty, it will default to 0.","type":"string"},"hours_used":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the number of sick leave or vacation hours used in the current year.","type":"string"},"is_resetting_hours_each_new_year":{"description":"Indicates whether or not the hours accrued resets to zero at the beginning of the new year. If you include a blank `is_resetting_hours_each_new_year` element in an EmployeeMod message, you’ll receive an error.","type":"boolean"},"maximum_hours":{"description":"The maximum number of hours that the employee can accrue. (QuickBooks itself doesn’t enforce this limit, however. `hours_available` can be greater than `maximum_hours`.) The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"}},"type":"object"}},"type":"object"},"part_or_full_time":{"description":"Full or Part time status of the employee.","enum":["FullTime","PartTime"],"type":"string"},"us_citizen":{"description":"Is employee a US citizen?","enum":["No","Yes"],"type":"string"},"us_veteran":{"description":"Is employee a US veteran?","enum":["No","Yes"],"type":"string"},"additional_notes":{"items":{"properties":{"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"}},"required":["note"],"type":"object"},"type":"array"},"gender":{"description":"The gender of this employee.","enum":["Female","Male"],"type":"string"},"billing_rate_ref":{"description":"Billing rates are used to override the service item rate in a time transaction (TimeTrackingAdd) based on the employee or vendor performing the work. Billing rates are assigned to an employee or a vendor to specify overrides to service items.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"description":{"description":"The description details in the employment job details section.","type":"string"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"A concatenation of `first_name`, `middle_name`, and `last_name`.","type":"string"},"email":{"description":"E-mail address.","type":"string"},"supervisor_ref":{"description":"The name of a customer, vendor, employee, or person on the “other names” list in the employment job details section.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pager_pin":{"description":"A personal identification number for this employee’s pager.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"military_status":{"description":"Military status if the employee is a US veteran.","enum":["Active","Reserve"],"type":"string"},"phone":{"description":"The telephone number.","type":"string"},"key_employee":{"description":"Is employee a key or critical employee.","enum":["No","Yes"],"type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"employee_address":{"description":"If an address request fails, some combination of address fields might be too long. If you use payroll, you must specify the employee’s city, state (or province), ZIP (or postal) code, and at least one line of the street address. (Note that the State element has restrictions when it’s used in the `employee_address` aggregate. For more information, click State in the table.)","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"type":"string"},"addr4":{"type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"When it appears in the `employee_address` aggregate, the State element acts like an ENUMTYPE with the following possible values: None, AA (military), AE (military), AK, AL, AP (military), AR, AZ, CA, CO, CT, DC, DE, FL, GA, HI, IA, ID, IL, IN, KS, KY, LA, MA, MD, ME, MI, MN, MO, MS, MT, NC, ND, NE, NH, NJ, NM, NV, NY, OH, OK, OR, PA, PR, RI, SC, SD, TN, TX, UT, VA, VT, WA, WI, WV, and WY.","type":"string"}},"type":"object"},"ethnicity":{"description":"Ethnicity of employee from AmericianIndian, Asian, Black, Hawaiian, Hispanic, White, TwoOrMoreRaces","enum":["AmericianIndian","Asian","Black","Hawaiian","Hispanic","TwoOrMoreRaces","White"],"type":"string"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"print_as":{"description":"By default within QuickBooks, the `print_as` element is the same as the Name element.","type":"string"},"emergency_contacts":{"description":"Emergency Contact information for the employee.","properties":{"primary_contact":{"description":"Primary emergency contact information for the employee.","properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"},"relation":{"description":"Relationship of emergency contact information to the employee.","enum":["Brother","Daughter","Father","Friend","Mother","Other","Partner","Sister","Son","Spouse"],"type":"string"}},"required":["contact_name","contact_value"],"type":"object"},"secondary_contact":{"description":"Secondary emergency contact information for the employee.","properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"},"relation":{"description":"Relationship of emergency contact information to the employee.","enum":["Brother","Daughter","Father","Friend","Mother","Other","Partner","Sister","Son","Spouse"],"type":"string"}},"required":["contact_name","contact_value"],"type":"object"}},"type":"object"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"birth_date":{"description":"Date of birth.","format":"date","type":"string"},"released_date":{"description":"The date on which this person’s employment with the company ended.","format":"date","type":"string"},"suffix":{"type":"string"},"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"required":["contact_name","contact_value"],"type":"object"},"type":"array"},"adjusted_service_date":{"description":"Adjusted service date for the employee.","format":"date","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"pager":{"description":"The pager number.","type":"string"},"target_bonus":{"description":"The target bonus amount in the employment job details section.","type":"number"},"exempt":{"description":"Exempt or Non-exempt status of the employee.","enum":["Exempt","NonExempt"],"type":"string"},"disability_desc":{"description":"Description of employee’s disablitily.","type":"string"},"original_hire_date":{"description":"Original hire date the employee was hired.","format":"date","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"on_file":{"description":"Is the employee’s I-9 on file?","enum":["No","Yes"],"type":"string"},"notes":{"description":"Additional information.","type":"string"},"include_ret_element":{"items":{"enum":["AccountNumber","AdditionalContactRef","AdditionalNotesRet","AdjustedServiceDate","AltPhone","BillingRateRef","BirthDate","DataExtRet","Department","Description","DisabilityDesc","Disabled","EditSequence","Email","EmergencyContacts","EmployeeAddress","EmployeePayrollInfo","EmployeeType","Ethnicity","Exempt","ExternalGUID","Fax","FirstName","Gender","HiredDate","IsActive","JobTitle","KeyEmployee","LastName","ListID","MiddleName","MilitaryStatus","Mobile","Name","Notes","OnFile","OriginalHireDate","OwnerID","Pager","PagerPIN","PartOrFullTime","Phone","PrintAs","ReleasedDate","SSN","Salutation","Suffix","SupervisorRef","TargetBonus","TimeCreated","TimeModified","TxnID","TxnNumber","USCitizen","USVeteran","WorkAuthExpireDate"],"type":"string"},"type":"array"},"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"}},"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createEmployee_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create employee","tags":["Employees"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateEmployee_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `EmployeeModRq`. The `employee_mod` wrapper from qbXML is also accepted.\n\nModifies and existing employee.\n\nIntuit's reference: [EmployeeMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/employeemod).","operationId":"updateEmployee","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","email":"jane.doe@acme.example","list_id":"80000001-1700000000","name":"Jane Doe","phone":"555-0100"},"schema":{"properties":{"additional_notes_mod":{"items":{"properties":{"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"note_id":{"description":"The ID of the note.","type":"integer"}},"required":["note","note_id"],"type":"object"},"type":"array"},"department":{"description":"The name of the department in the employment job details section.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"mobile":{"description":"Mobile telephone number.","type":"string"},"work_auth_expire_date":{"description":"Date the employee’s work authorization expires.","format":"date","type":"string"},"employee_type":{"description":"`employee_type` can affect payroll taxes for an employee. A statutory employee is a person who is defined as an employee by statute. Usually an owner or partner will be on the Other Names list, but if they are on the Employee list, their `employee_type` will be Owner.","enum":["Officer","Owner","Regular","Statutory"],"type":"string"},"disabled":{"description":"Is employee disabled?","enum":["No","Yes"],"type":"string"},"fax":{"description":"Fax number.","type":"string"},"hired_date":{"description":"An employee’s date of hire.","format":"date","type":"string"},"part_or_full_time":{"description":"Full or Part time status of the employee.","enum":["FullTime","PartTime"],"type":"string"},"employee_payroll_info_mod":{"description":"Pay information for this employee.","not":{"anyOf":[{"required":["clear_earnings","earnings"]}]},"properties":{"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"clear_earnings":{"description":"If `clear_earnings` is set to true, the earnings will be deleted for this employee.\n\nChoose at most one of: `clear_earnings`, or `earnings`.","type":"boolean"},"earnings":{"description":"Choose at most one of: `clear_earnings`, or `earnings`.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"payroll_item_wage_ref":{"description":"Each payroll wage item describes and names a payment scheme, for example, Regular Pay or Overtime Pay. A `payroll_item_wage_ref` aggregate refers to one of these wage items. In a request, if a `payroll_item_wage_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"rate":{"description":"Indicates the price of something.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`.","type":"number"}},"required":["payroll_item_wage_ref"],"type":"object"},"type":"array"},"pay_period":{"description":"Indicates how often employees are paid. If you include a blank `pay_period` element in an EmployeeMod message, you’ll receive an error. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","enum":["Biweekly","Daily","Monthly","Quarterly","Semimonthly","Weekly","Yearly"],"type":"string"},"sick_hours":{"description":"Describes how “sick time” is accrued for this employee, along with how many sick hours the employee has accrued.","properties":{"accrual_period":{"description":"Indicates how an employee accrues time off. If you include a blank `accrual_period` element in an EmployeeMod message, you’ll receive an error. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","enum":["BeginningOfYear","EveryHourOnPaycheck","EveryPaycheck"],"type":"string"},"accrual_start_date":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the date on which sick leave or vacation hours in the current year began to accrue.","format":"date","type":"string"},"hours_accrued":{"description":"The number of hours that the employee will accrue per accrual period. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"},"hours_available":{"description":"The total number of hours currently available for the employee to use. If this value is empty, it will default to 0.","type":"string"},"hours_used":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the number of sick leave or vacation hours used in the current year.","type":"string"},"is_resetting_hours_each_new_year":{"description":"Indicates whether or not the hours accrued resets to zero at the beginning of the new year. If you include a blank `is_resetting_hours_each_new_year` element in an EmployeeMod message, you’ll receive an error.","type":"boolean"},"maximum_hours":{"description":"The maximum number of hours that the employee can accrue. (QuickBooks itself doesn’t enforce this limit, however. `hours_available` can be greater than `maximum_hours`.) The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"}},"type":"object"},"use_time_data_to_create_paychecks":{"description":"Indicates whether time data is used to create paychecks for this employee.","enum":["DoNotUseTimeData","NotSet","UseTimeData"],"type":"string"},"vacation_hours":{"description":"Describes how vacation time is accrued for this employee, along with how many vacation hours the employee has accrued.","properties":{"accrual_period":{"description":"Indicates how an employee accrues time off. If you include a blank `accrual_period` element in an EmployeeMod message, you’ll receive an error. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","enum":["BeginningOfYear","EveryHourOnPaycheck","EveryPaycheck"],"type":"string"},"accrual_start_date":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the date on which sick leave or vacation hours in the current year began to accrue.","format":"date","type":"string"},"hours_accrued":{"description":"The number of hours that the employee will accrue per accrual period. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"},"hours_available":{"description":"The total number of hours currently available for the employee to use. If this value is empty, it will default to 0.","type":"string"},"hours_used":{"description":"When used in the `sick_hours` or `vacation_hours` aggregates, refers to the number of sick leave or vacation hours used in the current year.","type":"string"},"is_resetting_hours_each_new_year":{"description":"Indicates whether or not the hours accrued resets to zero at the beginning of the new year. If you include a blank `is_resetting_hours_each_new_year` element in an EmployeeMod message, you’ll receive an error.","type":"boolean"},"maximum_hours":{"description":"The maximum number of hours that the employee can accrue. (QuickBooks itself doesn’t enforce this limit, however. `hours_available` can be greater than `maximum_hours`.) The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.","type":"string"}},"type":"object"}},"type":"object"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"us_citizen":{"description":"Is employee a US citizen?","enum":["No","Yes"],"type":"string"},"us_veteran":{"description":"Is employee a US veteran?","enum":["No","Yes"],"type":"string"},"billing_rate_ref":{"description":"Billing rates are used to override the service item rate in a time transaction (TimeTrackingAdd) based on the employee or vendor performing the work. Billing rates are assigned to an employee or a vendor to specify overrides to service items.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"description":{"description":"The description details in the employment job details section.","type":"string"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"A concatenation of `first_name`, `middle_name`, and `last_name`.","type":"string"},"email":{"description":"E-mail address.","type":"string"},"supervisor_ref":{"description":"The name of a customer, vendor, employee, or person on the “other names” list in the employment job details section.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pager_pin":{"description":"A personal identification number for this employee’s pager.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"military_status":{"description":"Military status if the employee is a US veteran.","enum":["Active","Reserve"],"type":"string"},"phone":{"description":"The telephone number.","type":"string"},"key_employee":{"description":"Is employee a key or critical employee.","enum":["No","Yes"],"type":"string"},"employee_address":{"description":"If an address request fails, some combination of address fields might be too long. If you use payroll, you must specify the employee’s city, state (or province), ZIP (or postal) code, and at least one line of the street address. (Note that the State element has restrictions when it’s used in the `employee_address` aggregate. For more information, click State in the table.)","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"type":"string"},"addr4":{"type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"When it appears in the `employee_address` aggregate, the State element acts like an ENUMTYPE with the following possible values: None, AA (military), AE (military), AK, AL, AP (military), AR, AZ, CA, CO, CT, DC, DE, FL, GA, HI, IA, ID, IL, IN, KS, KY, LA, MA, MD, ME, MI, MN, MO, MS, MT, NC, ND, NE, NH, NJ, NM, NV, NY, OH, OK, OR, PA, PR, RI, SC, SD, TN, TX, UT, VA, VT, WA, WI, WV, and WY.","type":"string"}},"type":"object"},"ethnicity":{"description":"Ethnicity of employee from AmericianIndian, Asian, Black, Hawaiian, Hispanic, White, TwoOrMoreRaces.","enum":["AmericianIndian","Asian","Black","Hawaiian","Hispanic","TwoOrMoreRaces","White"],"type":"string"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"print_as":{"description":"By default within QuickBooks, the `print_as` element is the same as the Name element.","type":"string"},"emergency_contacts":{"description":"Emergency Contact information for the employee.","properties":{"primary_contact":{"description":"Primary emergency contact information for the employee.","properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"},"relation":{"description":"Relationship of emergency contact information to the employee.","enum":["Brother","Daughter","Father","Friend","Mother","Other","Partner","Sister","Son","Spouse"],"type":"string"}},"required":["contact_name","contact_value"],"type":"object"},"secondary_contact":{"description":"Secondary emergency contact information for the employee.","properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"},"relation":{"description":"Relationship of emergency contact information to the employee.","enum":["Brother","Daughter","Father","Friend","Mother","Other","Partner","Sister","Son","Spouse"],"type":"string"}},"required":["contact_name","contact_value"],"type":"object"}},"type":"object"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"birth_date":{"description":"Date of birth.","format":"date","type":"string"},"released_date":{"description":"The date on which this person’s employment with the company ended.","format":"date","type":"string"},"suffix":{"type":"string"},"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"required":["contact_name","contact_value"],"type":"object"},"type":"array"},"adjusted_service_date":{"description":"Adjusted service date for the employee.","format":"date","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"pager":{"description":"The pager number.","type":"string"},"target_bonus":{"description":"The target bonus amount in the employment job details section.","type":"number"},"exempt":{"description":"Exempt or Non-exempt status of the employee.","enum":["Exempt","NonExempt"],"type":"string"},"disability_desc":{"description":"Description of employee’s disablitily.","type":"string"},"original_hire_date":{"description":"Original hire date the employee was hired.","format":"date","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"on_file":{"description":"Is the employee’s I-9 on file?","enum":["No","Yes"],"type":"string"},"notes":{"description":"Additional information.","type":"string"},"include_ret_element":{"items":{"enum":["AccountNumber","AdditionalContactRef","AdditionalNotesRet","AdjustedServiceDate","AltPhone","BillingRateRef","BirthDate","DataExtRet","Department","Description","DisabilityDesc","Disabled","EditSequence","Email","EmergencyContacts","EmployeeAddress","EmployeePayrollInfo","EmployeeType","Ethnicity","Exempt","ExternalGUID","Fax","FirstName","Gender","HiredDate","IsActive","JobTitle","KeyEmployee","LastName","ListID","MiddleName","MilitaryStatus","Mobile","Name","Notes","OnFile","OriginalHireDate","OwnerID","Pager","PagerPIN","PartOrFullTime","Phone","PrintAs","ReleasedDate","SSN","Salutation","Suffix","SupervisorRef","TargetBonus","TimeCreated","TimeModified","TxnID","TxnNumber","USCitizen","USVeteran","WorkAuthExpireDate"],"type":"string"},"type":"array"},"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateEmployee_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update employee","tags":["Employees"]}},"/connections/{connection_id}/credit-card-charges":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listCreditCardCharges_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CreditCardChargeQueryRq`.\n\nQueries for the specified credit card charge or charges.\n\nIntuit's reference: [CreditCardChargeQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/creditcardchargequery).","operationId":"listCreditCardCharges","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AccountRef","Amount","AmountInHomeCurrency","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExpenseLineRet","ExternalGUID","IsTaxIncluded","ItemGroupLineRet","ItemLineRet","Memo","PayeeEntityRef","RefNumber","SalesTaxCodeRef","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listCreditCardCharges_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List credit card charges","tags":["Credit Card Charges"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createCreditCardCharge_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CreditCardChargeAddRq`. The `credit_card_charge_add` wrapper from qbXML is also accepted.\n\nA credit card charge is a general charge incurred when a QuickBooks user makes a purchase using a credit card. Credit card charges for purchases can be tracked as expenses (in expense accounts) or as items.\n\nThe current balance on the credit card becomes part of the accounts payable balance. If a balance is carried on the credit card across time, finance or interest charges can be tracked in QuickBooks.\n\nIntuit's reference: [CreditCardChargeAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/creditcardchargeadd).","operationId":"createCreditCardCharge","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"account_ref":{"full_name":"Visa"},"item_line_add":[{"cost":60.0,"desc":"Blue widget, large","item_ref":{"full_name":"Widget"},"quantity":2}],"memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15"},"schema":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for `expense_line_add` it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_add":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for `expense_line_add` it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"memo":{"description":"Additional information.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["AccountRef","Amount","AmountInHomeCurrency","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExpenseLineRet","ExternalGUID","IsTaxIncluded","ItemGroupLineRet","ItemLineRet","ListID","Memo","OwnerID","PayeeEntityRef","RefNumber","SalesTaxCodeRef","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_add":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_add` and `item_group_line_add` combine: any number of each. QuickBooks receives them in that order: every `item_line_add`, then every `item_group_line_add`.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["item_group_ref"],"type":"object"},"type":"array"},"item_line_add":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If `item_line_add` doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_add` and `item_group_line_add` combine: any number of each. QuickBooks receives them in that order: every `item_line_add`, then every `item_group_line_add`.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"link_to_txn":{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"required":["txn_id","txn_line_id"],"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the charge. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"}},"required":["account_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createCreditCardCharge_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create credit card charge","tags":["Credit Card Charges"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateCreditCardCharge_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CreditCardChargeModRq`, from qbXML 6.0. The `credit_card_charge_mod` wrapper from qbXML is also accepted.\n\nThe Credit Card charge mod request allows you to modify an existing credit card charge transaction using the SDK. You can modify most of the fields that can be modified in the QuickBooks UI. That is, this request can be used to modify Purchased from, date, credit card and modify lines from the item table and the expense table.\n\nThe following list describes what you can and can’t due with this request:\n\n- You can modify or clear the following fields: Ref Num and Memo\n- You can modify (not clear) transaction date\n- You can change the credit card account to support the scenario where the credit card transaction was created and posted to the wrong credit card account (impacts your accounting).\n- You can modify the Purchase from field (Payee Name) to change the Payee Name on the credit card transaction to a different name (employee, job, customer, vendor, other name). This field can’t be cleared since it is required by QB business logic\n- You can’t modify the amount due directly! (However the amount due will change when you modify the transaction lines.)\n- You can’t change a Charge to a Credit.\n- You can’t Void the charge. Use TxnVoid instead.\n- You can clear the entire expense table or the entire item table, but you can’t clear both tables at the same time.\n\nIntuit's reference: [CreditCardChargeMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/creditcardchargemod).","operationId":"updateCreditCardCharge","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","txn_id":"1A2B-1700000000"},"schema":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"clear_expense_lines":{"description":"Set `clear_expense_lines` to true to clear all the expense lines. To modify individual lines, use `expense_line_mod`.","type":"boolean"},"clear_item_lines":{"description":"Set `clear_item_lines` to true to clear all the item lines. To modify individual lines, use `item_line_mod`.","type":"boolean"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_mod":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"include_ret_element":{"items":{"enum":["AccountRef","Amount","AmountInHomeCurrency","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExpenseLineRet","ExternalGUID","IsTaxIncluded","ItemGroupLineRet","ItemLineRet","ListID","Memo","OwnerID","PayeeEntityRef","RefNumber","SalesTaxCodeRef","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_mod":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_mod` and `item_group_line_mod` combine: any number of each. QuickBooks receives them in that order: every `item_line_mod`, then every `item_group_line_mod`.","items":{"properties":{"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_mod":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"item_line_mod":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_mod` and `item_group_line_mod` combine: any number of each. QuickBooks receives them in that order: every `item_line_mod`, then every `item_group_line_mod`.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the charge. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateCreditCardCharge_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update credit card charge","tags":["Credit Card Charges"]}},"/connections/{connection_id}/preferences":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listPreferences_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PreferencesQueryRq`, from qbXML 1.1.\n\nA PreferencesQueryRq request message returns information about many of the preferences that the QuickBooks user has set in the company file. Preferences can’t be modified through the SDK, only through the QuickBooks user interface. Note: If you include an explicit end tag in a PreferencesQueryRq request, you will receive an error if there is any space between the opening tag and the end tag. The following table shows valid and invalid ways of constructing this request:\n\n- Valid (no space between opening and closing tags)\n- Valid (combined opening and closing tag)\n- Invalid (space between opening and closing tags)\n\nIntuit's reference: [PreferencesQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/preferencesquery).","operationId":"listPreferences","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AccountingPreferences","CurrentAppAccessRights","FinanceChargePreferences","ItemsAndInventoryPreferences","JobsAndEstimatesPreferences","MultiCurrencyPreferences","MultiLocationInventoryPreferences","PurchasesAndVendorsPreferences","ReportsPreferences","SalesAndCustomersPreferences","SalesTaxPreferences","TimeTrackingPreferences"],"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listPreferences_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List preferences","tags":["Preferences"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updatePreferences_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PreferencesModRq`. The `preferences_mod` wrapper from qbXML is also accepted.\n\nIntuit's reference: [PreferencesMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/preferencesmod).","operationId":"updatePreferences","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"accounting_preferences_mod":{"closing_date":"2026-01-15"}},"schema":{"properties":{"accounting_preferences_mod":{"properties":{"closing_date":{"format":"date","type":"string"},"closing_date_password":{"type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["AccountingPreferences","CurrentAppAccessRights","FinanceChargePreferences","ItemsAndInventoryPreferences","JobsAndEstimatesPreferences","MultiCurrencyPreferences","MultiLocationInventoryPreferences","PurchasesAndVendorsPreferences","ReportsPreferences","SalesAndCustomersPreferences","SalesTaxPreferences","TimeTrackingPreferences"],"type":"string"},"type":"array"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["accounting_preferences_mod"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updatePreferences_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update preferences","tags":["Preferences"]}},"/connections/{connection_id}/payroll-item-deductions":{"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createPayrollItemDeduction_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollItemDeductionAddRq`. The `payroll_item_deduction_add` wrapper from qbXML is also accepted.\n\nIntuit's reference: [PayrollItemDeductionAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollitemdeductionadd).","operationId":"createPayrollItemDeduction","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"liability_account_ref":{"full_name":"Payroll Liabilities"},"name":"Health Insurance","payment_template_ref":{"full_name":"Example"},"vendor_ref":{"full_name":"Northwind Supplies"}},"schema":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"calculated_based_on":{"enum":["HoursAll","HoursWorked","Quantity","Rate"],"type":"string"},"include_ret_element":{"items":{"enum":["CalculatedBasedOn","EditSequence","IsActive","LiabilityAccountRef","LiabilityPaymentSchedule","Limit","LimitTimePeriod","ListID","Name","NetOrGross","PaymentTemplateRef","PayrollItemDetailTypeValue","Rate","RatePercent","Taxability","TimeCreated","TimeModified","VendorAccountNumber","VendorRef","W2TrackingTypeValue"],"type":"string"},"type":"array"},"is_active":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"required":["payment_schedule_type"],"type":"object"},"limit":{"type":"number"},"limit_time_period":{"enum":["Annual","Forever"],"type":"string"},"name":{"type":"string"},"net_or_gross":{"enum":["Gross","Net"],"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"taxability":{"items":{"properties":{"is_tax_applied":{"type":"boolean"},"payroll_item_tax_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"required":["is_tax_applied","payroll_item_tax_ref"],"type":"object"},"type":"array"},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"w2_tracking_type_value":{"type":"integer"}},"required":["liability_account_ref","name","payment_template_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createPayrollItemDeduction_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create payroll item deduction","tags":["Payroll Item Deductions"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updatePayrollItemDeduction_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollItemDeductionModRq`. The `payroll_item_deduction_mod` wrapper from qbXML is also accepted.\n\nIntuit's reference: [PayrollItemDeductionMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollitemdeductionmod).","operationId":"updatePayrollItemDeduction","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Health Insurance","vendor_ref":{"full_name":"Northwind Supplies"}},"schema":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"calculated_based_on":{"enum":["HoursAll","HoursWorked","Quantity","Rate"],"type":"string"},"edit_sequence":{"type":"string"},"include_ret_element":{"items":{"enum":["CalculatedBasedOn","EditSequence","IsActive","LiabilityAccountRef","LiabilityPaymentSchedule","Limit","LimitTimePeriod","ListID","Name","NetOrGross","PaymentTemplateRef","PayrollItemDetailTypeValue","Rate","RatePercent","Taxability","TimeCreated","TimeModified","VendorAccountNumber","VendorRef","W2TrackingTypeValue"],"type":"string"},"type":"array"},"is_active":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"required":["payment_schedule_type"],"type":"object"},"limit":{"type":"number"},"limit_time_period":{"enum":["Annual","Forever"],"type":"string"},"list_id":{"type":"string"},"name":{"type":"string"},"net_or_gross":{"enum":["Gross","Net"],"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"taxability":{"items":{"properties":{"is_tax_applied":{"type":"boolean"},"payroll_item_tax_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"required":["is_tax_applied","payroll_item_tax_ref"],"type":"object"},"type":"array"},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"w2_tracking_type_value":{"type":"integer"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updatePayrollItemDeduction_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update payroll item deduction","tags":["Payroll Item Deductions"]}},"/connections/{connection_id}/list-merge":{"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/executeListMerge_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ListMergeRq`, from qbXML 7.0.\n\nThis request merges one list object into another list object of the same type. Currently you can merge customers/jobs, or vendors, or accounts. The consequence of the merge is that only the merge-to object remains. The merge-from object goes away and all transactions that reference that merge-from object now reference only the merge-to object.\n\nThe request itself is very simple: you just need the `list_id` and `edit_sequence` for the two objects to be merged. However, you may have to do some preliminary work on the objects themselves before the merge. For accounts, you must make sure they have the same AccountType, and must stop if they don’t. (You can’t change the AccountType!) You must also check the Sublevel of the two accounts and change one of them to match the other before, by making the ParentRef point to the same parent account or by getting rid of the ParentRef, if you need to set the Sublevel to 0.\n\nFor customers, you must make sure only one of the customers/jobs has child jobs. If both have child jobs, you must move the jobs first to the merge-to customer or delete the jobs.\n\nYou can only merge two list objects from a QuickBooks company file if the file is open in single-user mode. If the file is open in multiuser mode, your application will receive an error.\n\nIntuit's reference: [ListMerge](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/listmerge).","operationId":"executeListMerge","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"list_merge_type":"Customer","merge_from":{"edit_sequence":"1700000000","list_id":"80000001-1700000000"},"merge_to":{"edit_sequence":"1700000000","list_id":"80000001-1700000000"}},"schema":{"properties":{"list_merge_type":{"description":"The type of the objects to be merged. Both of the objects must be the same type, for example both must be customers, because you can’t merge a vendor with a customer.","enum":["Account","Class","Customer","ItemDiscount","ItemGroup","ItemInventory","ItemNonInventory","ItemOtherCharge","ItemPayment","ItemSalesTax","ItemSalesTaxGroup","ItemService","ItemSubtotal","Vendor"],"type":"string"},"merge_from":{"description":"The object to be merged into another object.","properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["edit_sequence","list_id"],"type":"object"},"merge_to":{"description":"The object into which you are merging another object.","properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"required":["edit_sequence","list_id"],"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"same_ship_addr_ok":{"description":"A new tag (SameshipAddressOk) is added to ListMerge request. If true is supplied in this tag then the merge will go through even if elements have same default shipto address.","type":"boolean"}},"required":["list_merge_type","merge_from","merge_to"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/executeListMerge_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Execute list merge","tags":["List Merge"]}},"/workflow-templates":{"get":{"description":"Every workflow template QuBe Sync ships: complete, tested charts for the common multi-step jobs. `installs` lists the other templates installing one would also create, because its chart calls them.","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/WorkflowTemplateSummary"},"type":"array"}},"type":"object"}}},"description":"A list of templates"}},"security":[{"apiKey":[]}],"summary":"List workflow templates","tags":["Workflows"]}},"/connections/{connection_id}/custom-summary-reports":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listCustomSummaryReports_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CustomSummaryReportQueryRq`, from qbXML 2.0.\n\nA custom summary report gives you complete control over the content of the report. It doesn’t have any default values and consists entirely of customized data.\n\nIf you want complete control over the report content, you will be interested in both the custom summary report and the custom transaction detail report. Custom reports don’t make any assumptions about the data you are interested in–they require you to specify exactly what data you want included in the report. Your application has to select the row and column axes, and it controls the output using common customization parameters for dates and filters. For the custom transaction detail report, you must specify all the include columns for the transactions you want returned in the report. For these reports, you are also required to specify a date element a DateMacro or a custom date range).\n\nIntuit's reference: [CustomSummaryReportQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/customsummaryreportquery).","operationId":"listCustomSummaryReports","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"The type of report being queried.","in":"query","name":"custom_summary_report_type","required":true,"schema":{"enum":["CustomSummary"],"type":"string"}},{"description":"Set `display_report` to true to display this report within the QuickBooks UI. (Default is false.) If you want the request to display the report without returning any data to your application, set the responseData attribute to includeNone.","in":"query","name":"display_report","required":false,"schema":{"type":"boolean"}},{"description":"The default value is false, which means that the report won’t include any subcolumn information. To include all available types of subcolumns for this report, set `include_subcolumns` to true. The SDK won’t return subcolumn information for data that can be easily computed. (For example, the SDK doesn’t return the “percent of row” column.)","in":"query","name":"include_subcolumns","required":false,"schema":{"type":"boolean"}},{"description":"Allows you to query for a specified account type or for specific list elements.","in":"query","name":"report_account_filter","required":false,"schema":{"oneOf":[{"properties":{"account_type_filter":{"description":"Allows you to report on a specific account type.","enum":["APAndSalesTax","APOrCreditCard","ARAndAP","AccountsPayable","AccountsReceivable","AllowedFor1099","Asset","BalanceSheet","Bank","BankAndARAndAPAndUF","BankAndUF","CostOfSales","CreditCard","CurrentAsset","CurrentAssetAndExpense","CurrentLiability","Equity","EquityAndIncomeAndExpense","ExpenseAndOtherExpense","FixedAsset","IncomeAndExpense","IncomeAndOtherIncome","Liability","LiabilityAndEquity","LongTermLiability","NonPosting","OrdinaryExpense","OrdinaryIncome","OrdinaryIncomeAndCOGS","OrdinaryIncomeAndExpense","OtherAsset","OtherCurrentAsset","OtherCurrentLiability","OtherExpense","OtherIncome","OtherIncomeOrExpense"],"type":"string"}},"required":["account_type_filter"],"title":"AccountTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"If `report_basis` is rbCash, the report bases income and expenses on the dates when money changed hands.rbAccrual, the report bases income on the dates when customers were invoiced and bases expenses on the dates when bills were entered.rbNone, the report uses the default `report_basis`, which is either the QuickBooks Preference setting or the QuickBooks default for a given type of report.","in":"query","name":"report_basis","required":false,"schema":{"enum":["Accrual","Cash","None"],"type":"string"}},{"description":"Specifies the type of year that will be used for this report.","in":"query","name":"report_calendar","required":false,"schema":{"enum":["CalendarYear","FiscalYear","TaxYear"],"type":"string"}},{"description":"Allows you to query for a specified class. Classes can be used to separate transactions into meaningful categories. (For example, transactions could be classified according to department, business location, or type of work.) In QuickBooks, class tracking is off by default.","in":"query","name":"report_class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"The time period covered by this report.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_date_macro","required":false,"schema":{"enum":["All","LastMonth","LastMonthToDate","LastQuarter","LastQuarterToDate","LastWeek","LastWeekToDate","LastYear","LastYearToDate","NextFourWeeks","NextMonth","NextQuarter","NextWeek","NextYear","ThisMonth","ThisMonthToDate","ThisQuarter","ThisQuarterToDate","ThisWeek","ThisWeekToDate","ThisYear","ThisYearToDate","Today","Yesterday"],"type":"string"}},{"description":"The level of detail to include in the report.","in":"query","name":"report_detail_level_filter","required":false,"schema":{"enum":["All","AllExceptSummary","SummaryOnly"],"type":"string"}},{"description":"Allows you to query for a specified name type (customer, employee, vendor, or other) or query for specific list elements.","in":"query","name":"report_entity_filter","required":false,"schema":{"oneOf":[{"properties":{"entity_type_filter":{"description":"Allows you to report on a specific name type.","enum":["Customer","Employee","OtherName","Vendor"],"type":"string"}},"required":["entity_type_filter"],"title":"EntityTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Allows you to query for a specified item type (for example, discount, inventory, or non-inventory) or query for specific list elements.","in":"query","name":"report_item_filter","required":false,"schema":{"oneOf":[{"properties":{"item_type_filter":{"description":"Allows you to report on a specific item type.","enum":["AllExceptFixedAsset","Assembly","Discount","FixedAsset","Inventory","InventoryAndAssembly","NonInventory","OtherCharge","Payment","Sales","SalesTax","Service"],"type":"string"}},"required":["item_type_filter"],"title":"ItemTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Returns reports that were modified between these two dates (inclusive). The range of acceptable dates for both `from_report_modified_date` and `to_report_modified_date` is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).\n\nChoose at most one of: `report_modified_date_range_filter`, or `report_modified_date_range_macro`.","in":"query","name":"report_modified_date_range_filter","required":false,"schema":{"properties":{"from_report_modified_date":{"description":"Selects information from this date and later. The range of acceptable dates is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).","format":"date","type":"string"},"to_report_modified_date":{"description":"Selects information created on this date or earlier. The range of acceptable dates is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).","format":"date","type":"string"}},"type":"object"}},{"description":"The time period covered by this report.\n\nChoose at most one of: `report_modified_date_range_filter`, or `report_modified_date_range_macro`.","in":"query","name":"report_modified_date_range_macro","required":false,"schema":{"enum":["All","LastMonth","LastMonthToDate","LastQuarter","LastQuarterToDate","LastWeek","LastWeekToDate","LastYear","LastYearToDate","NextFourWeeks","NextMonth","NextQuarter","NextWeek","NextYear","ThisMonth","ThisMonthToDate","ThisQuarter","ThisQuarterToDate","ThisWeek","ThisWeekToDate","ThisYear","ThisYearToDate","Today","Yesterday"],"type":"string"}},{"description":"If you omit both `to_report_date` and `from_report_date`, the report will cover the current fiscal year to date.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_period","required":false,"schema":{"properties":{"from_report_date":{"description":"Selects information from this date and later. The range of acceptable `from_report_date` and `to_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"},"to_report_date":{"description":"Selects information created on this date or earlier. The range of acceptable `to_report_date` and `from_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"}},"type":"object"}},{"description":"Allows you to query for posting reports, non-posting reports, or reports that are either one.","in":"query","name":"report_posting_status_filter","required":false,"schema":{"enum":["Either","NonPosting","Posting"],"type":"string"}},{"description":"Allows you to report on specific transaction types (for example, charge, check, deposit, or estimate).","in":"query","name":"report_txn_type_filter","required":false,"schema":{"properties":{"txn_type_filter":{"items":{"enum":["ARRefundCreditCard","All","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"},"type":"array"}},"required":["txn_type_filter"],"type":"object"}},{"description":"Specifies whether you want the report to include only columns with active information, only columns with nonzero values, or all columns regardless of their content or active status.","in":"query","name":"return_columns","required":false,"schema":{"enum":["ActiveOnly","All","NonZero"],"type":"string"}},{"description":"Specifies whether you want the report to include only rows with active information, only rows with nonzero values, or all rows regardless of their content or active status.","in":"query","name":"return_rows","required":false,"schema":{"enum":["ActiveOnly","All","NonZero"],"type":"string"}},{"description":"`summarize_columns_by` determines which data the report calculates and how the columns will be labeled across the top of the report. For example, if you set the value to scbTwoWeek, the report’s column labels might be “Feb 10-23, 02,” “Feb 24-Mar9, 02,” and so on.","in":"query","name":"summarize_columns_by","required":true,"schema":{"enum":["Account","BalanceSheet","Class","Customer","CustomerType","Day","Employee","FourWeek","HalfMonth","IncomeStatement","ItemDetail","ItemType","Month","Payee","PaymentMethod","PayrollItemDetail","PayrollYtdDetail","Quarter","SalesRep","SalesTaxCode","ShipMethod","Terms","TotalOnly","TwoWeek","Vendor","VendorType","Week","Year"],"type":"string"}},{"description":"`summarize_rows_by` (along with IncludeColumnList, in most cases) determines what data is calculated for this report and controls how the rows are organized and labeled. For example, if you set the value to srbAccount, the report’s row labels might be “Checking,” “Savings,” and so on.","in":"query","name":"summarize_rows_by","required":true,"schema":{"enum":["Account","BalanceSheet","Class","Customer","CustomerType","Day","Employee","FourWeek","HalfMonth","IncomeStatement","ItemDetail","ItemType","Month","Payee","PaymentMethod","PayrollItemDetail","PayrollYtdDetail","Quarter","SalesRep","SalesTaxCode","ShipMethod","TaxLine","Terms","TotalOnly","TwoWeek","Vendor","VendorType","Week","Year"],"type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listCustomSummaryReports_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List custom summary reports","tags":["Custom Summary Reports"]}},"/connections/{connection_id}/data-event-recovery-infos":{"delete":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/deleteDataEventRecoveryInfo_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `DataEventRecoveryInfoDelRq`, from qbXML 3.0.\n\nDeletes the data event recovery information for the given subscriber. An application would send a DataEventRecoveryInfoDel request after having recovered its data events. For details about the event-notification feature, see the chapter called “Event Notification” in the QB SDK Programmer’s Guide ([PDF](https://developer.intuit.com/app/developer/logged-in-content/QBSDK_ProGuide.pdf), 9.6 MB).\n\nIntuit's reference: [DataEventRecoveryInfoDel](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/dataeventrecoveryinfodel).","operationId":"deleteDataEventRecoveryInfo","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"subscriber_id":"{6B063959-81B0-4622-85D6-F548C8CCB517}"},"schema":{"properties":{"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"subscriber_id":{"description":"A unique identifier that an application sets when it adds a subscription so that the application can later query or delete the subscription.","type":"string"}},"required":["subscriber_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/deleteDataEventRecoveryInfo_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Delete data event recovery info","tags":["Data Event Recovery Infos"]},"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listDataEventRecoveryInfos_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `DataEventRecoveryInfoQueryRq`, from qbXML 3.0.\n\nYou can use the DataEventRecoveryInfoQuery request to find out whether data event recovery information exists for the given subscriber. If it does, then data events have been lost and need to be recovered. (Note that there will be no data event recovery information to return if TrackLostEvents was “tleNone” in the subscriber’s DataEventSubscriptionAdd request.)\n\nReturned data event recovery information currently consists only of `data_event_recovery_time`. For more details about the event-notification feature, see [Subscribing to events and processing event notifications](https://developer.intuit.com/app/developer/qbdesktop/docs/develop/tutorials/subscribing-to-events-and-processing-event-notifications).\n\nIntuit's reference: [DataEventRecoveryInfoQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/dataeventrecoveryinfoquery).","operationId":"listDataEventRecoveryInfos","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"A unique identifier that an application sets when it adds a subscription so that the application can later query or delete the subscription.","in":"query","name":"subscriber_id","required":true,"schema":{"type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listDataEventRecoveryInfos_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List data event recovery infos","tags":["Data Event Recovery Infos"]}},"/connections/{connection_id}/item-services":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listItemServices_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemServiceQueryRq`.\n\nQueries for the specified service item or set of items.\n\nIntuit's reference: [ItemServiceQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemservicequery).","operationId":"listItemServices","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `full_name` or `list_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters according to the object’s class.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["BarCodeValue","ClassRef","DataExtRet","EditSequence","ExternalGUID","FullName","IsActive","IsTaxIncluded","ListID","Name","ParentRef","SalesAndPurchase","SalesOrPurchase","SalesTaxCodeRef","Sublevel","TimeCreated","TimeModified","UnitOfMeasureSetRef"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listItemServices_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List item services","tags":["Item Services"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createItemService_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemServiceAddRq`. The `item_service_add` wrapper from qbXML is also accepted.\n\nAdds a service item: work the business sells or buys, such as labor, consulting hours or fees. Send `sales_or_purchase` for a service it only sells or only buys (one price, one account), or `sales_and_purchase` for one it does both with (an income and an expense account).\n\nIntuit's reference: [ItemServiceAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemserviceadd).","operationId":"createItemService","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"Consulting","sales_or_purchase":{"account_ref":{"full_name":"Sales"}}},"schema":{"oneOf":[{"properties":{"sales_or_purchase":{"description":"A `sales_or_purchase` aggregate is used for items that are meant to be either purchased or sold, but not both. For example, a `sales_or_purchase` aggregate would be used for a non-inventory item that is purchased but not sold, or for a service item that is sold but not purchased.","not":{"anyOf":[{"required":["price","price_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"price":{"description":"The purchase price or sales price of this item.\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"},"price_percent":{"description":"The price expressed as a percent. (For example, an auto shop that calculates the cost of labor as a percentage of the cost of parts might have a service item called “Labor” that uses `price_percent` instead of Price.)\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"}},"type":"object"}},"required":["sales_or_purchase"],"title":"SalesOrPurchase","type":"object"},{"properties":{"sales_and_purchase":{"description":"A `sales_and_purchase` aggregate is used for items that are meant to be both purchased and sold, such as an “other charge” item that is reimbursable.","properties":{"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"}},"required":["sales_and_purchase"],"title":"SalesAndPurchase","type":"object"}],"properties":{"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["BarCodeValue","ClassRef","DataExtRet","EditSequence","ExternalGUID","FullName","IsActive","IsTaxIncluded","ListID","Name","OwnerID","ParentRef","SalesAndPurchase","SalesOrPurchase","SalesTaxCodeRef","Sublevel","TimeCreated","TimeModified","TxnID","TxnNumber","UnitOfMeasureSetRef"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createItemService_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create item service","tags":["Item Services"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateItemService_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemServiceModRq`. The `item_service_mod` wrapper from qbXML is also accepted.\n\nAbout `sales_or_purchase_mod` versus `sales_and_purchase_mod` in an ItemServiceMod request:\n\nYou can’t change the reimbursable status of a service item through the SDK. For example, if a service item is marked as non-reimbursable in QuickBooks, you can’t send a modify request that includes a `sales_and_purchase_mod` aggregate. Similarly, if you send an ItemServiceAdd request that includes a `sales_or_purchase` aggregate, you can’t later modify that item using a `sales_and_purchase_mod` aggregate.\n\nStarting with qbXML spec 7.0, you can modify the various account references using the appropriate account reference aggregate and the matching Apply Account RefToExistingTxns boolean. You need to use the boolean when you change an account ref because the QuickBooks UI displays a prompt asking whether the change should apply to existing transactions or not. Specifying True for the boolean basically dismisses this with a “Yes” answer, allowing your changes to be made and changes any existing transactions that use the item with that `account_ref`. Specifying “False” means that the mod won’t take affect if there are existing transactions.\n\nSetting this to “True” should be used with caution and normally only after some user has indicated that they want those changes made to all those existing transactions!\n\nIf any affected transactions are protected by a closing date and password, the `account_ref` changes won’t be made and so the Mod request will return an error without making the requested Mod.\n\nIntuit's reference: [ItemServiceMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemservicemod).","operationId":"updateItemService","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Consulting"},"schema":{"not":{"anyOf":[{"required":["sales_or_purchase_mod","sales_and_purchase_mod"]}]},"properties":{"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"force_uom_change":{"description":"By Default `force_uom_change` is false. However, in item Mod requests, you need to set the `force_uom_change` field to True if you are changing the UOM set and the base unit of the new set doesn’t match the base unit of the UOM set currently assigned to the item. This does the same thing as the user accepting the warning prompt in the UI.","type":"boolean"},"include_ret_element":{"items":{"enum":["BarCodeValue","ClassRef","DataExtRet","EditSequence","ExternalGUID","FullName","IsActive","IsTaxIncluded","ListID","Name","OwnerID","ParentRef","SalesAndPurchase","SalesOrPurchase","SalesTaxCodeRef","Sublevel","TimeCreated","TimeModified","TxnID","TxnNumber","UnitOfMeasureSetRef"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_and_purchase_mod":{"description":"A `sales_and_purchase` aggregate is used for items that are meant to be both purchased and sold, such as an “other charge” item that is reimbursable.\n\nChoose at most one of: `sales_or_purchase_mod`, or `sales_and_purchase_mod`.","properties":{"apply_expense_account_ref_to_existing_txns":{"description":"Used to support changing the `account_ref` in the Mod request. When you do this, the QuickBooks UI normally displays a prompt asking whether the change should apply to existing transactions or not. Specifying False basically dismisses this with a “No” answer; specifying True dismisses it with a “Yes” answer and then changes the existing transactions that use the item with that `account_ref`.","type":"boolean"},"apply_income_account_ref_to_existing_txns":{"description":"Used to support changing the `account_ref` in the Mod request. When you do this, the QuickBooks UI normally displays a prompt asking whether the change should apply to existing transactions or not. Specifying False basically dismisses this with a “No” answer; specifying True dismisses it with a “Yes” answer and then changes the existing transactions that use the item with that `account_ref`.","type":"boolean"},"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"sales_or_purchase_mod":{"description":"A `sales_or_purchase` aggregate is used for items that are meant to be either purchased or sold, but not both. For example, a `sales_or_purchase` aggregate would be used for a non-inventory item that is purchased but not sold, or for a service item that is sold but not purchased.\n\nChoose at most one of: `sales_or_purchase_mod`, or `sales_and_purchase_mod`.","not":{"anyOf":[{"required":["price","price_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"apply_account_ref_to_existing_txns":{"description":"Used to support changing the `account_ref` in the Mod request. When you do this, the QuickBooks UI normally displays a prompt asking whether the change should apply to existing transactions or not. Specifying False basically dismisses this with a “No” answer; specifying True dismisses it with a “Yes” answer and then changes the existing transactions that use the item with that `account_ref`.","type":"boolean"},"desc":{"description":"A descriptive text field.","type":"string"},"price":{"description":"The purchase price or sales price of this item.\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"},"price_percent":{"description":"The price expressed as a percent. (For example, an auto shop that calculates the cost of labor as a percentage of the cost of parts might have a service item called “Labor” that uses `price_percent` instead of Price.)\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateItemService_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update item service","tags":["Item Services"]}},"/connections/{connection_id}/item-receipts":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listItemReceipts_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemReceiptQueryRq`, from qbXML 3.0.\n\nAn item receipt transaction is entered in QuickBooks when a shipment is received from a vendor.\n\nIntuit's reference: [ItemReceiptQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemreceiptquery).","operationId":"listItemReceipts","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items` or `include_linked_txns`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"description":"If you set `include_linked_txns` to true, then the returned object will include a list of all the transactions linked to the queried object. (This list is similar to the History view of a transaction in the user interface, but not identical, as the SDK list contains only linked transactions, not items.) Each linked transaction will be represented by a `linked_txn` aggregate.","in":"query","name":"include_linked_txns","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["APAccountRef","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExpenseLineRet","ExternalGUID","IsTaxIncluded","ItemGroupLineRet","ItemLineRet","LiabilityAccountRef","LinkedTxn","Memo","RefNumber","SalesTaxCodeRef","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber","VendorRef"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listItemReceipts_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List item receipts","tags":["Item Receipts"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createItemReceipt_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemReceiptAddRq`, from qbXML 4.0. The `item_receipt_add` wrapper from qbXML is also accepted.\n\nAdds an item receipt transaction, which is a transaction entered in QuickBooks when a shipment is received from a vendor. If you use PurchaseOrders to order from the vendor, you can link the item receipt to purchase order to receive the items against the purchase orders to automatically update (and eventually close) the purchase orders. This linking also saves you having to re-create line items as they are pulled in automatically from the purchase order. You can do this linking only in the item receipt add, not in the mod.\n\nIntuit's reference: [ItemReceiptAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemreceiptadd).","operationId":"createItemReceipt","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"item_line_add":[{"cost":60.0,"desc":"Blue widget, large","item_ref":{"full_name":"Widget"},"quantity":2}],"memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","vendor_ref":{"full_name":"Northwind Supplies"}},"schema":{"properties":{"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_add":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for `expense_line_add` it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"memo":{"description":"Additional information.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["APAccountRef","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExpenseLineRet","ExternalGUID","IsTaxIncluded","ItemGroupLineRet","ItemLineRet","LiabilityAccountRef","LinkedTxn","ListID","Memo","OwnerID","RefNumber","SalesTaxCodeRef","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber","VendorRef"],"type":"string"},"type":"array"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_add":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_add` and `item_group_line_add` combine: any number of each. QuickBooks receives them in that order: every `item_line_add`, then every `item_group_line_add`.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["item_group_ref"],"type":"object"},"type":"array"},"item_line_add":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If `item_line_add` doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_add` and `item_group_line_add` combine: any number of each. QuickBooks receives them in that order: every `item_line_add`, then every `item_group_line_add`.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"link_to_txn":{"description":"When used with InvoiceAdd, the transaction you are linking to via this field must be a SalesOrder; links to other transactions, such as to estimates, aren’t currently supported. When used with BillAdd or ItemReceiptAdd, the transaction you are linking to via this field must be a PurchaseOrder: links to other transactions aren’t currently supported.","properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"required":["txn_id","txn_line_id"],"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"link_to_txn_id":{"items":{"type":"string"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["vendor_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createItemReceipt_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create item receipt","tags":["Item Receipts"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateItemReceipt_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemReceiptModRq`, from qbXML 4.0. The `item_receipt_mod` wrapper from qbXML is also accepted.\n\nModifies an existing item receipt.\n\nIntuit's reference: [ItemReceiptMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemreceiptmod).","operationId":"updateItemReceipt","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","txn_id":"1A2B-1700000000","vendor_ref":{"full_name":"Northwind Supplies"}},"schema":{"properties":{"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"clear_expense_lines":{"description":"Set `clear_expense_lines` to true to clear all the expense lines. To modify individual lines, use `expense_line_mod`.","type":"boolean"},"clear_item_lines":{"description":"Set `clear_item_lines` to true to clear all the item lines. To modify individual lines, use `item_line_mod`.","type":"boolean"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_mod":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"include_ret_element":{"items":{"enum":["APAccountRef","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExpenseLineRet","ExternalGUID","IsTaxIncluded","ItemGroupLineRet","ItemLineRet","LiabilityAccountRef","LinkedTxn","ListID","Memo","OwnerID","RefNumber","SalesTaxCodeRef","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber","VendorRef"],"type":"string"},"type":"array"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_mod":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_mod` and `item_group_line_mod` combine: any number of each. QuickBooks receives them in that order: every `item_line_mod`, then every `item_group_line_mod`.","items":{"properties":{"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_mod":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"item_line_mod":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_mod` and `item_group_line_mod` combine: any number of each. QuickBooks receives them in that order: every `item_line_mod`, then every `item_group_line_mod`.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateItemReceipt_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update item receipt","tags":["Item Receipts"]}},"/connections/{connection_id}/list-displays":{"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createListDisplay_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ListDisplayAddRq`, from qbXML 3.0.\n\nA ListDisplayAdd request opens a form within the QuickBooks UI for adding a list element.\n\nIntuit's reference: [ListDisplayAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/listdisplayadd).","operationId":"createListDisplay","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"list_display_add_type":"Customer"},"schema":{"properties":{"list_display_add_type":{"description":"Specifies the type of QuickBooks list for which to open an “add” form in the QuickBooks UI.","enum":["Account","Customer","Employee","Item","OtherName","Vendor"],"type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["list_display_add_type"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createListDisplay_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create list display","tags":["List Displays"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateListDisplay_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ListDisplayModRq`, from qbXML 3.0.\n\nA ListDisplayMod request opens a QuickBooks list element within the QuickBooks UI for modification.\n\nIntuit's reference: [ListDisplayMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/listdisplaymod).","operationId":"updateListDisplay","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"list_display_mod_type":"Customer","list_id":"80000001-1700000000"},"schema":{"properties":{"list_display_mod_type":{"description":"The type of QuickBooks list element to open for modification in the QuickBooks UI. (`list_id` specifies the particular list element.)","enum":["Account","Customer","Employee","Item","OtherName","Vendor"],"type":"string"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["list_display_mod_type","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateListDisplay_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update list display","tags":["List Displays"]}},"/workflows/{key}/versions/{number}":{"get":{"description":"The snapshot itself. This is the source half of the two-token CI recipe: read a version with the sandbox app's key and PUT it with the production app's.","parameters":[{"description":"The workflow's stable key","in":"path","name":"key","required":true,"schema":{"pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"}},{"description":"The version number, as shown in the history","in":"path","name":"number","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WorkflowVersion"}},"type":"object"}}},"description":"The version, with its definition"},"404":{"description":"No workflow with that key, or no such version"}},"security":[{"apiKey":[]}],"summary":"One published version","tags":["Workflows"]}},"/connections/{connection_id}/other-names":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listOtherNames_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `OtherNameQueryRq`.\n\nQueries for the specified other name or set of other names.\n\nIntuit's reference: [OtherNameQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/othernamequery).","operationId":"listOtherNames","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AccountNumber","AltContact","AltPhone","CompanyName","Contact","DataExtRet","EditSequence","Email","ExternalGUID","Fax","FirstName","IsActive","LastName","ListID","MiddleName","Name","Notes","OtherNameAddress","OtherNameAddressBlock","Phone","Salutation","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listOtherNames_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List other names","tags":["Other Names"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createOtherName_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `OtherNameAddRq`. The `other_name_add` wrapper from qbXML is also accepted.\n\nAdds an other name. In QuickBooks, the “other names” list contains any names that don’t appear on customer, vendor, or employee lists.\n\nIntuit's reference: [OtherNameAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/othernameadd).","operationId":"createOtherName","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"company_name":"Acme Corp","email":"billing@acme.example","name":"Petty Cash","phone":"555-0100"},"schema":{"properties":{"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"},"alt_contact":{"description":"The name of an alternate contact person for a vendor, customer, or “other name” entry.","type":"string"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"email":{"description":"E-mail address.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"fax":{"description":"Fax number.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"include_ret_element":{"items":{"enum":["AccountNumber","AltContact","AltPhone","CompanyName","Contact","DataExtRet","EditSequence","Email","ExternalGUID","Fax","FirstName","IsActive","LastName","ListID","MiddleName","Name","Notes","OtherNameAddress","OtherNameAddressBlock","OwnerID","Phone","Salutation","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"notes":{"description":"Additional information.","type":"string"},"other_name_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"phone":{"description":"The telephone number.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createOtherName_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create other name","tags":["Other Names"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateOtherName_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `OtherNameModRq`. The `other_name_mod` wrapper from qbXML is also accepted.\n\nModifies an existing other name.\n\nIntuit's reference: [OtherNameMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/othernamemod).","operationId":"updateOtherName","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"company_name":"Acme Corp","edit_sequence":"1700000000","email":"billing@acme.example","list_id":"80000001-1700000000","name":"Petty Cash","phone":"555-0100"},"schema":{"properties":{"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"},"alt_contact":{"description":"The name of an alternate contact person for a vendor, customer, or “other name” entry.","type":"string"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"email":{"description":"E-mail address.","type":"string"},"fax":{"description":"Fax number.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"include_ret_element":{"items":{"enum":["AccountNumber","AltContact","AltPhone","CompanyName","Contact","DataExtRet","EditSequence","Email","ExternalGUID","Fax","FirstName","IsActive","LastName","ListID","MiddleName","Name","Notes","OtherNameAddress","OtherNameAddressBlock","OwnerID","Phone","Salutation","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"notes":{"description":"Additional information.","type":"string"},"other_name_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"phone":{"description":"The telephone number.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateOtherName_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update other name","tags":["Other Names"]}},"/workflows/validate":{"post":{"description":"Always responds 200. `valid` says whether the chart would be accepted; `errors` lists every problem with a document-shaped path, and `warnings` carries the non-blocking lint (unreachable states, undeclared inputs).","requestBody":{"content":{"application/json":{"schema":{"properties":{"definition":{"$ref":"#/components/schemas/WorkflowChart"}},"required":["definition"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"errors":{"items":{"$ref":"#/components/schemas/WorkflowError"},"type":"array"},"valid":{"type":"boolean"},"warnings":{"items":{"$ref":"#/components/schemas/WorkflowError"},"type":"array"}},"type":"object"}}},"description":"The verdict"}},"security":[{"apiKey":[]}],"summary":"Validate a chart without saving it","tags":["Workflows"]}},"/connections/{connection_id}/item-sales-taxes":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listItemSalesTaxes_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemSalesTaxQueryRq`.\n\nQueries for the specified sales tax item or set of items.\n\nIntuit's reference: [ItemSalesTaxQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemsalestaxquery).","operationId":"listItemSalesTaxes","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `full_name` or `list_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters according to the object’s class.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["BarCodeValue","ClassRef","DataExtRet","EditSequence","ExternalGUID","IsActive","ItemDesc","ListID","Name","SalesTaxReturnLineRef","TaxRate","TaxVendorRef","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listItemSalesTaxes_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List item sales taxes","tags":["Item Sales Taxes"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createItemSalesTax_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemSalesTaxAddRq`. The `item_sales_tax_add` wrapper from qbXML is also accepted.\n\nAdds a sales-tax item, which is an item used to calculate a single sales tax that is collected at a specified rate and paid to a single agency. (Compare with the ItemSalesTaxGroupAdd message.) An ItemSalesTaxRef aggregate refers to an item on this list. In a request, if an ItemSalesTaxRef aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.\n\nSee also: [Line item taxes](https://docs.qubesync.com/quickbooks-notes#line-item-taxes).\n\nIntuit's reference: [ItemSalesTaxAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemsalestaxadd).","operationId":"createItemSalesTax","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"State Sales Tax"},"schema":{"properties":{"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["BarCodeValue","ClassRef","DataExtRet","EditSequence","ExternalGUID","IsActive","ItemDesc","ListID","Name","OwnerID","SalesTaxReturnLineRef","TaxRate","TaxVendorRef","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_return_line_ref":{"description":"Sales tax return line information.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_rate":{"description":"The tax rate. If a nonzero `tax_rate` is specified, then `tax_vendor_ref` is required.","type":"number"},"tax_vendor_ref":{"description":"Refers to the tax agency to whom collected taxes are owed. (This will be a vendor on the Vendor list.) If a nonzero `tax_rate` is specified, then `tax_vendor_ref` is required. In a request, if a `tax_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createItemSalesTax_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create item sales tax","tags":["Item Sales Taxes"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateItemSalesTax_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemSalesTaxModRq`, from qbXML 3.0. The `item_sales_tax_mod` wrapper from qbXML is also accepted.\n\nModifies an existing sales tax item.\n\nIntuit's reference: [ItemSalesTaxMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemsalestaxmod).","operationId":"updateItemSalesTax","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"State Sales Tax"},"schema":{"properties":{"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"include_ret_element":{"items":{"enum":["BarCodeValue","ClassRef","DataExtRet","EditSequence","ExternalGUID","IsActive","ItemDesc","ListID","Name","OwnerID","SalesTaxReturnLineRef","TaxRate","TaxVendorRef","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_return_line_ref":{"description":"Sales tax return line information.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_rate":{"description":"The tax rate. If a nonzero `tax_rate` is specified, then `tax_vendor_ref` is required.","type":"number"},"tax_vendor_ref":{"description":"Refers to the tax agency to whom collected taxes are owed. (This will be a vendor on the Vendor list.) If a nonzero `tax_rate` is specified, then `tax_vendor_ref` is required. In a request, if a `tax_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateItemSalesTax_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update item sales tax","tags":["Item Sales Taxes"]}},"/connections/{connection_id}/workflow-runs/{run_id}/decisions":{"post":{"description":"Answer with the `choice` the person picked: one of the run's `prompt.choices[].id`, and `data` holding exactly that choice's `fields` (none, an empty object, or left out, for a choice without fields). `{\"choice\": \"use:1\"}` picks an item of a list the run offered -- its value comes from QuBe Sync, so your app never sends a ListID or TxnID of its own -- and a `record` field is answered with the `value` the run's search (`links.search`) returned. A field the choice doesn't list, or a value of the wrong type, is a `422 invalid_data` naming it, and a missing required one `422 missing_fields`.\n\n`option` still answers too: one of the ids the run's `prompt.options` listed, with `data` carrying whatever that option declared `fields` for (send `choice` or `option`, not both). A question asked by a workflow this one calls (`prompt.from`) is part of this run, and is answered here the same way. A conflict prompt (`prompt.kind` is `conflict`: an update met a record someone changed after the run read it) is answered here too, with one of its two fixed options: `{\"option\": \"overwrite\"}` re-sends the update with the current edit sequence and the fields it sent, `{\"option\": \"overwrite\", \"data\": {\"params\": {...}}}` sends those fields instead (a merge worked out from `prompt.data`: an object of fields the update takes, like `prompt.data.sent`; one it does not take is refused with a 422, `invalid_data`, naming the field, and the run keeps waiting), and `{\"option\": \"keep\"}` leaves QuickBooks as it is and carries on with its record.\n\nPOST to the run's `links.decisions`: while the run is asking, it carries the prompt's `token` as `?prompt_token=`, so an answer you send again because the first got no response can't be taken for the run's next question. `token` is new every time the run asks, the same question asked again included (a `wait` in a loop, a workflow called once per item), and an answer naming a question the run is no longer asking is refused with `409 prompt_changed`, changing nothing. Building the URL yourself, send the token as `prompt_token` in the query or the body (the body's wins); without one, an answer is taken for whatever the run is asking when it arrives.","parameters":[{"description":"ID of the connection","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"ID of the workflow run","in":"path","name":"run_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"The `token` of the prompt this answers, as `links.decisions` carries it while the run is asking. Refused with `409 prompt_changed` once the run has asked again. A `prompt_token` in the body wins over this one.","in":"query","name":"prompt_token","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"examples":{"an_item":{"summary":"An item the run offered","value":{"choice":"use:1"}},"by_choice":{"summary":"A choice with a field","value":{"choice":"rename","data":{"name":"Lone Star Supply Co (2)"}}},"rows":{"summary":"A rows field: add_transaction's records QuickBooks doesn't have","value":{"choice":"proceed","data":{"records":{"customer_ref":{"action":"use","list_id":"80000001-1712345678"},"invoice_line_add.0.item_ref":{"action":"create","asset_account":"80000005-1712345678","cogs_account":"8000000C-1712345678","income_account":"8000000A-1712345678","item_type":"item_inventory"},"invoice_line_add.1.item_ref":{"action":"create","income_account":"8000000A-1712345678"}}}}},"searched":{"summary":"A record field, from a search","value":{"choice":"use","data":{"list_id":"80000012-1712345678"}}}},"schema":{"oneOf":[{"required":["choice"]},{"required":["option"]}],"properties":{"choice":{"description":"One of `prompt.choices[].id`: what the person picked. Send this or `option`.","example":"rename","type":"string"},"data":{"description":"The chosen choice's `fields`, by name (`{\"name\": \"Lone Star Supply Co (2)\"}`), or the option's; a `rows` field as an object keyed by each row's `key`, each an object of the columns that row asks and that apply to it. For a conflict's `overwrite` by option, optionally `params`: the fields to send instead.","type":"object"},"option":{"description":"One of `prompt.options[].id`: for a conflict prompt, `overwrite` or `keep`. Send this or `choice`.","type":"string"},"prompt_token":{"description":"The `token` of the prompt this answers (`prompt.token` on the run or the webhook), when the URL you POST to doesn't already carry it (`links.decisions` does) or to override the one it carries. When the run has asked again since -- the same question from a loop, or the next item's -- the answer is refused with `409 prompt_changed` and nothing changes. Leave it out (or null), with no `prompt_token` in the query either, to answer whatever the run is asking when it arrives.","nullable":true,"type":"string"}},"type":"object"}}},"description":"The chosen `choice` and its fields, or the chosen `option` and the fields it declared. For a conflict prompt, `option` is `overwrite` or `keep`, and `data.params` (optional, only with `overwrite`) is the object of fields to send in place of the ones the update sent; its choices are the same two, without `params`.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WorkflowRun"}},"type":"object"}}},"description":"The run, advanced"},"400":{"content":{"application/json":{"example":{"errors":{"code":"not_awaiting_input","detail":"the run isn't waiting for an answer: already answered, still working, or ended"}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"`not_awaiting_input`: the run is not waiting for an answer -- already answered, still working, or ended. Safe to ignore on a repeat. The body is `{\"errors\": {\"code\": \"not_awaiting_input\", \"detail\": \"...\"}}`: branch on `code`; `detail` is words for a person and may change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No run with that id on that connection, or the connection does not belong to this app."},"409":{"content":{"application/json":{"example":{"errors":{"code":"prompt_changed","detail":"the run has asked again since; answer the question in its prompt"}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"`prompt_changed` (`errors.code`): `prompt_token` is not the question the run is asking now. It has asked again since -- usually because an earlier copy of this answer landed -- and nothing changed. `GET` the run for the question it is asking."},"422":{"content":{"application/json":{"example":{"errors":{"code":"invalid_choice","detail":"choose one of rename, cancel"}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The answer is refused and the run keeps waiting. `errors.code` says why: `invalid_choice` (a choice the prompt does not offer; `errors.detail` lists the ids it does), `invalid_option` (an option the prompt does not offer; `errors.detail` lists the ids it does), `missing_fields` (a required field of the option was not in `data`, or a row of a `rows` field or a column that applies to it was left out, named `<field>.<row key>` or `<field>.<row key>.<column>`; `detail` names it), `invalid_data` (`data` held a field the choice does not list, or a value of the wrong type, each named as `data.<field>`; `choice` and `option` were both sent; `data` held a `$ref` or `$pages` key, which are how a run holds its own records, or a conflict's `overwrite` carried `params` with a field the update does not take, named in `detail`), or `invalid_prompt_token` (`prompt_token` was not a string)."}},"security":[{"apiKey":[]}],"summary":"Answer a run that is awaiting input","tags":["Workflows"]}},"/connections/{connection_id}/password":{"post":{"description":"What the Web Connector authenticates with, alongside `username`. Omit `password` to have QuBe Sync generate a random one; either way, calling this again replaces the current one.","operationId":"setConnectionPassword","parameters":[{"description":"The connection to act on.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"password":{"type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"},"password":{"type":"string"}},"type":"object"}},"type":"object"}}},"description":"The new password"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"apiKey":[]}],"summary":"Generate or set a password","tags":["Connections"]}},"/connections/{connection_id}/ship-methods":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listShipMethods_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ShipMethodQueryRq`.\n\nQueries for the specified shipping method or set of methods.\n\nIntuit's reference: [ShipMethodQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/shipmethodquery).","operationId":"listShipMethods","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["EditSequence","IsActive","ListID","Name","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listShipMethods_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List ship methods","tags":["Ship Methods"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createShipMethod_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ShipMethodAddRq`. The `ship_method_add` wrapper from qbXML is also accepted.\n\nAdds a shipping method, for example, standard mail or overnight delivery. A ShipMethodRef aggregate refers to an item on the ShipMethod list. In a request, if a ShipMethodRef aggregate includes both FullName and `list_id`, FullName will be ignored.\n\nIntuit's reference: [ShipMethodAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/shipmethodadd).","operationId":"createShipMethod","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"UPS"},"schema":{"properties":{"include_ret_element":{"items":{"enum":["EditSequence","ExternalGUID","IsActive","ListID","Name","OwnerID","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createShipMethod_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create ship method","tags":["Ship Methods"]}},"/connections/{connection_id}/build-assemblies":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listBuildAssemblies_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `BuildAssemblyQueryRq`, from qbXML 5.0.\n\nFilters BuildAssembly transactions by the specified filter criteria.\n\nIntuit's reference: [BuildAssemblyQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/buildassemblyquery).","operationId":"listBuildAssemblies","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Specify “true” if component line items for each returned transaction are to be included in the returned data. Specify “false” if the line items aren’t be returned.","in":"query","name":"include_component_line_items","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["ComponentItemLineRet","DataExtRet","EditSequence","ExpirationDateForSerialLotNumber","ExternalGUID","InventorySiteLocationRef","InventorySiteRef","IsPending","ItemInventoryAssemblyRef","LotNumber","Memo","QuantityCanBuild","QuantityOnHand","QuantityOnSalesOrder","QuantityToBuild","RefNumber","SerialNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"Filters according to the item name or ID. You can use an ItemQuery request to get information about all the items that are set up in the QuickBooks file. “Items” are line items used for fast entry on sales and purchase forms. They include services and goods that a business buys and sells, as well as special items that perform calculations–for example, subtotal, discount, and sales-tax items.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`item_filter`, `max_returned`, `modified_date_range_filter`, `pending_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"item_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`item_filter`, `max_returned`, `modified_date_range_filter`, `pending_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`item_filter`, `max_returned`, `modified_date_range_filter`, `pending_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"Specifies whether the transaction is pending (posted) or not.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`item_filter`, `max_returned`, `modified_date_range_filter`, `pending_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"pending_status","required":false,"schema":{"enum":["All","NotPendingOnly","PendingOnly"],"type":"string"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`item_filter`, `max_returned`, `modified_date_range_filter`, `pending_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`item_filter`, `max_returned`, `modified_date_range_filter`, `pending_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`item_filter`, `max_returned`, `modified_date_range_filter`, `pending_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`item_filter`, `max_returned`, `modified_date_range_filter`, `pending_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`item_filter`, `max_returned`, `modified_date_range_filter`, `pending_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`item_filter`, `max_returned`, `modified_date_range_filter`, `pending_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listBuildAssemblies_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List build assemblies","tags":["Build Assemblies"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createBuildAssembly_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `BuildAssemblyAddRq`, from qbXML 5.0. The `build_assembly_add` wrapper from qbXML is also accepted.\n\nAdds a build assembly transaction to QuickBooks, where the specified quantity of the specified inventory assembly item is built. If there are insufficient quantities of items required for the build, you can have the build marked as a pending build by using setting `mark_pending_if_required` to True. (If you don’t and theren’t enough quantities on hand for the build, this request will fail.) If successful, this request results in the decrementing of the quantities on hand amounts of each item used in the build, and the incrementing of the on hand quantities of the built assembly item.\n\nThis request is supported only in Premier and Enterprise.\n\nIntuit's reference: [BuildAssemblyAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/buildassemblyadd).","operationId":"createBuildAssembly","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"item_inventory_assembly_ref":{"full_name":"Gift Basket"},"memo":"Monthly service","quantity_to_build":2,"ref_number":"1001","txn_date":"2026-01-15"},"schema":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or TxnLineID so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["ComponentItemLineRet","DataExtRet","EditSequence","ExpirationDateForSerialLotNumber","ExternalGUID","InventorySiteLocationRef","InventorySiteRef","IsPending","ItemInventoryAssemblyRef","ListID","LotNumber","Memo","OwnerID","QuantityCanBuild","QuantityOnHand","QuantityOnSalesOrder","QuantityToBuild","RefNumber","SerialNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_inventory_assembly_ref":{"description":"An inventory assembly item is one that is assembled or manufactured from inventory items. The items and/or assemblies that make up the assembly are called components. For Premier, an assembly can have a maximum of 100 components. For Enterprise, the maximum is 500 components.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"mark_pending_if_required":{"description":"Allows the build assembly to be marked pending if there are insufficient quantities to complete the build assembly.","type":"boolean"},"memo":{"description":"Additional information.","type":"string"},"quantity_to_build":{"description":"Specifies the number of assemblies to be built. The transaction will fail if the number specified here exceeds the number of on-hand components.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"}},"required":["item_inventory_assembly_ref","quantity_to_build"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createBuildAssembly_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create build assembly","tags":["Build Assemblies"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateBuildAssembly_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `BuildAssemblyModRq`, from qbXML 5.0. The `build_assembly_mod` wrapper from qbXML is also accepted.\n\nModifies an existing build assembly transaction in the QuickBooks company.\n\nIntuit's reference: [BuildAssemblyMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/buildassemblymod).","operationId":"updateBuildAssembly","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","txn_id":"1A2B-1700000000"},"schema":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"include_ret_element":{"items":{"enum":["ComponentItemLineRet","DataExtRet","EditSequence","ExpirationDateForSerialLotNumber","ExternalGUID","InventorySiteLocationRef","InventorySiteRef","IsPending","ItemInventoryAssemblyRef","ListID","LotNumber","Memo","OwnerID","QuantityCanBuild","QuantityOnHand","QuantityOnSalesOrder","QuantityToBuild","RefNumber","SerialNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"mark_pending_if_required":{"description":"Allows the build assembly to be marked pending if there are insufficient quantities to complete the build assembly.","type":"boolean"},"memo":{"description":"Additional information.","type":"string"},"quantity_to_build":{"description":"Specifies the number of assemblies to be built. The transaction will fail if the number specified here exceeds the number of on-hand components.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"remove_pending":{"description":"Changes the transaction’s pending status from Pending to non pending. In BuildAssembly transactions, this effectively does the build transaction. Hence, removing the Pending status will fail if there aren’t enough components on hand for the build.","type":"boolean"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateBuildAssembly_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update build assembly","tags":["Build Assemblies"]}},"/connections/{connection_id}/payroll-last-periods":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listPayrollLastPeriods_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollLastPeriodQueryRq`.\n\nIntuit's reference: [PayrollLastPeriodQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrolllastperiodquery).","operationId":"listPayrollLastPeriods","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listPayrollLastPeriods_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List payroll last periods","tags":["Payroll Last Periods"]}},"/connections/{connection_id}/journal-entries":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listJournalEntries_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `JournalEntryQueryRq`.\n\nIn traditional accounting, transactions are entered into the general journal and categorized exclusively by account. In QuickBooks, most transactions can be categorized either by account or by type (invoice, check, and so on). For a few activities in QuickBooks, you must use the general journal directly, for example for recording depreciation.\n\nNotice that you must supply the credit line and a corresponding debit line in the same request. It won’t work to supply them in two distinct requests. You can supply as many credit lines and debit lines in one single request as you want so long as the total monetary amount from the credits equals the total monetary amount from the debits in that request.\n\nFinally, DO NOT supply negative sign for the monetary amounts. QuickBooks does that for you. If you do supply the negative sign amounts will add instead of cancel and you’ll get a runtime error.\n\n### Querying for Condensed Transactions\n\nIf you need the query to return condensed transactions, you can do this by using either an Entity or Account filter in the journal query request. Alternatively, you could use the The generic TransactionQuery, which can return condensed transactions.\n\nIntuit's reference: [JournalEntryQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/journalentryquery).","operationId":"listJournalEntries","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExternalGUID","IsAdjustment","IsAmountsEnteredInHomeCurrency","IsHomeCurrencyAdjustment","JournalCreditLine","JournalDebitLine","Memo","RefNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listJournalEntries_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List journal entries","tags":["Journal Entries"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createJournalEntry_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `JournalEntryAddRq`. The `journal_entry_add` wrapper from qbXML is also accepted.\n\nIn versions 1.0 and 1.1, all debit lines in a JournalEntryAdd request had to appear first, followed by all credit lines. But in versions 2.0 and above, the debit and credit lines can be intermingled. A credit line can legally come first in thejournal entry add.\n\nIn traditional accounting, transactions are entered into the general journal and categorized exclusively by account. In QuickBooks, most transactions can be categorized either by account or by type (invoice, check, and so on). For a few activities in QuickBooks, you must use the general journal directly, for example for recording depreciation.\n\nNotice that you must supply the credit line and a corresponding debit line in the same request. It won’t work to supply them in two distinct requests. You can supply as many credit lines and debit lines in one single request as you want so long as the total monetary amount from the credits equals the total monetary amount from the debits in that request.\n\nFinally, DO NOT supply negative sign for the monetary amounts. QuickBooks does that for you. If you do supply the negative sign amounts will add instead of cancel and you’ll get a runtime error.\n\n### Querying for Condensed Transactions\n\nIf you need the query to return condensed transactions, you can do this by using either an Entity or Account filter in the journal query request. Alternatively, you could use the The generic TransactionQuery, which can return condensed transactions.\n\nIf the transaction is a home currency adjustment, QuickBooks will ignore the `is_amounts_entered_in_home_currency`, `currency_ref`, and `exchange_rate` elements.\n\nIntuit's reference: [JournalEntryAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/journalentryadd).","operationId":"createJournalEntry","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"journal_credit_line":[{"account_ref":{"full_name":"Checking"},"amount":250.0,"memo":"Monthly service"}],"journal_debit_line":[{"account_ref":{"full_name":"Office Supplies"},"amount":250.0,"memo":"Monthly service"}],"memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15"},"schema":{"not":{"anyOf":[{"required":["is_home_currency_adjustment","is_amounts_entered_in_home_currency"]},{"required":["is_home_currency_adjustment","currency_ref"]},{"required":["is_home_currency_adjustment","exchange_rate"]},{"properties":{"journal_credit_line":{"maxItems":0},"journal_debit_line":{"maxItems":0}}}]},"properties":{"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.\n\nChoose at most one of: `is_home_currency_adjustment`, or the set (`currency_ref`, `exchange_rate`, `is_amounts_entered_in_home_currency`). Members of a set combine with each other, not with the other choices.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.\n\nChoose at most one of: `is_home_currency_adjustment`, or the set (`currency_ref`, `exchange_rate`, `is_amounts_entered_in_home_currency`). Members of a set combine with each other, not with the other choices.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExternalGUID","IsAdjustment","IsAmountsEnteredInHomeCurrency","IsHomeCurrencyAdjustment","JournalCreditLine","JournalDebitLine","ListID","Memo","OwnerID","RefNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_adjustment":{"description":"When a change is an “adjustment,” the original information is retained, usually so an accountant can see the effects of the adjustment.","type":"boolean"},"is_amounts_entered_in_home_currency":{"description":"Flag that indicates the amount being entered is in the home currency.\n\nChoose at most one of: `is_home_currency_adjustment`, or the set (`currency_ref`, `exchange_rate`, `is_amounts_entered_in_home_currency`). Members of a set combine with each other, not with the other choices.","type":"boolean"},"is_home_currency_adjustment":{"description":"Indicates whether the transaction is using a home currency or foreign currency.\n\nChoose at most one of: `is_home_currency_adjustment`, or the set (`currency_ref`, `exchange_rate`, `is_amounts_entered_in_home_currency`). Members of a set combine with each other, not with the other choices.","type":"boolean"},"journal_credit_line":{"description":"If no amount is included in the first credit line (or debit line) of a journal entry in the QuickBooks user interface, then subsequent SDK queries on that JournalEntry object will fail XML validation.\n\nAt least one entry is required across `journal_debit_line` and `journal_credit_line`; they combine, any number of each. QuickBooks receives them in that order: every `journal_debit_line`, then every `journal_credit_line`.","items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In `journal_credit_line` and `journal_debit_line` messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"journal_debit_line":{"description":"If no amount is included in the first debit line (or credit line) of a journal entry in the QuickBooks user interface, then subsequent SDK queries on that JournalEntry object will fail XML validation.\n\nAt least one entry is required across `journal_debit_line` and `journal_credit_line`; they combine, any number of each. QuickBooks receives them in that order: every `journal_debit_line`, then every `journal_credit_line`.","items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In `journal_credit_line` and `journal_debit_line` messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"}},"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createJournalEntry_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create journal entry","tags":["Journal Entries"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateJournalEntry_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `JournalEntryModRq`, from qbXML 6.0. The `journal_entry_mod` wrapper from qbXML is also accepted.\n\nModifies a journal entry. If the transaction is a home currency adjustment, QuickBooks will ignore the `is_amounts_entered_in_home_currency`, `currency_ref`, and `exchange_rate` elements.\n\nIntuit's reference: [JournalEntryMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/journalentrymod).","operationId":"updateJournalEntry","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","ref_number":"1001","txn_date":"2026-01-15","txn_id":"1A2B-1700000000"},"schema":{"properties":{"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"include_ret_element":{"items":{"enum":["CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExternalGUID","IsAdjustment","IsAmountsEnteredInHomeCurrency","IsHomeCurrencyAdjustment","JournalCreditLine","JournalDebitLine","ListID","Memo","OwnerID","RefNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_adjustment":{"description":"When a change is an “adjustment,” the original information is retained, usually so an accountant can see the effects of the adjustment.","type":"boolean"},"is_amounts_entered_in_home_currency":{"description":"Flag that indicates the amount being entered is in the home currency.","type":"boolean"},"journal_line_mod":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In `journal_credit_line` and `journal_debit_line` messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"journal_line_type":{"description":"The type of journal line (debit or credit).","enum":["Credit","Debit"],"type":"string"},"memo":{"description":"Additional information.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateJournalEntry_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update journal entry","tags":["Journal Entries"]}},"/connections/{connection_id}/payroll-item-non-wages":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listPayrollItemNonWages_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollItemNonWageQueryRq`, from qbXML 3.0.\n\nQueries for the specified non-wage payroll item or set of items.\n\nIntuit's reference: [PayrollItemNonWageQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollitemnonwagequery).","operationId":"listPayrollItemNonWages","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["EditSequence","ExpenseAccountRef","IsActive","LiabilityAccountRef","ListID","Name","NonWageType","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listPayrollItemNonWages_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List payroll item non wages","tags":["Payroll Item Non Wages"]}},"/connections/{connection_id}/vendor-types":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listVendorTypes_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `VendorTypeQueryRq`.\n\nQueries for the specified vendor type or set of types.\n\nIntuit's reference: [VendorTypeQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/vendortypequery).","operationId":"listVendorTypes","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["EditSequence","FullName","IsActive","ListID","Name","ParentRef","Sublevel","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listVendorTypes_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List vendor types","tags":["Vendor Types"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createVendorType_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `VendorTypeAddRq`. The `vendor_type_add` wrapper from qbXML is also accepted.\n\nAdds a vendor type. A vendor type allows business owners to categorize vendors in ways that are meaningful for their businesses. For example, a vendor type might indicate which industry a vendor represents, or which part of the country a vendor is in.\n\nIntuit's reference: [VendorTypeAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/vendortypeadd).","operationId":"createVendorType","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"Supplier"},"schema":{"properties":{"include_ret_element":{"items":{"enum":["EditSequence","ExternalGUID","FullName","IsActive","ListID","Name","OwnerID","ParentRef","Sublevel","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createVendorType_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create vendor type","tags":["Vendor Types"]}},"/workflows/{key}/usage.md":{"get":{"description":"The same contract as one Markdown document, intended to be handed to whatever is writing the calling code.","parameters":[{"description":"The workflow's stable key","in":"path","name":"key","required":true,"schema":{"pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"}},{"description":"Which chart to describe: a version number, `published` (the default), or `working` for the working copy.","in":"query","name":"version","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"text/markdown":{"schema":{"type":"string"}}},"description":"The usage contract as Markdown"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No workflow with that key"}},"security":[{"apiKey":[]}],"summary":"How to use a workflow, as Markdown","tags":["Workflows"]}},"/connections/{connection_id}":{"delete":{"description":"Also deletes every queued request on it. The Web Connector on the QuickBooks computer keeps the app until someone removes it there. QuBe Sync answers its check-ins as an invalid login and tells it to check in only once a day.","operationId":"deleteConnection","parameters":[{"description":"The connection to act on.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"apiKey":[]}],"summary":"Remove a connection","tags":["Connections"]},"get":{"description":"Returns a single connection.","operationId":"getConnection","parameters":[{"description":"The connection to act on.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Connection"}},"type":"object"}}},"description":"Found"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"apiKey":[]}],"summary":"Get a connection","tags":["Connections"]},"put":{"description":"Only `name` and `webhook_url` can be changed after creation. A `webhook_url` of `null` stops the connection's webhooks; one changed while an event is being retried takes that event's next attempt. Sending `type`, `redirect_url`, `username`, `password`, `company_file`, `quickbooks_product_name` or `last_connected_at` is refused with `422` naming the field. Set a password with `POST /connections/{connection_id}/password`. Send the fields flat, as below (wrapping them in `connection` works too).","operationId":"updateConnection","parameters":[{"description":"The connection to act on.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"type":"string"},"webhook_url":{"description":"Where QuBe Sync sends the connection's own events: `connection.connected` when the Web Connector first checks in (and again after your customer chooses Set up again), `connection.setup_cancelled`, `connection.company_file_changed`, `connection.stalled` and `connection.resumed` (see the callback on Create a connection). Point it at your own record, such as `/webhooks/qube/connection/42` on your app. `null` stops them. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","example":"https://myapp.example/webhooks/qube/connection/42","format":"uri","maxLength":2048,"nullable":true,"type":"string"}},"type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Connection"}},"type":"object"}}},"description":"Updated"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrors"}}},"description":"Invalid fields, such as a `webhook_url` webhooks can't go to (not an absolute http or https URL, a username or password in it, longer than 2048 characters, or in production a private address), or a field that can't be set here, such as `redirect_url` or `last_connected_at`. `errors` names each one. Nothing was saved."}},"security":[{"apiKey":[]}],"summary":"Update a connection","tags":["Connections"]}},"/connections/{connection_id}/workflow-runs/{run_id}/search":{"get":{"description":"For a `record` field of the question the run is asking (a field of type `record` in one of `prompt.choices`): the records of its `kind` whose names are like `q`, from the connection's name index -- what a person types into a search box, one call per pause in their typing, and one with `q` empty as the box is focused before anything is typed. GET the run's `links.search`, which carries the prompt's `token`, adding `field` and `q`; answer the choice with the `value` of the one picked as that field. At most 20, ranked as matching ranks them: the exact name first, then names that start with `q`, then the most alike.\n\nOnly a realtime or simulated connection has a name index, so only there does a prompt carry a search choice and `links.search`. While the index is being built, the search is refused with `409 name_index_building`, as a match is. `q` is a name your user typed: keep it out of your own logs as QuBe Sync keeps it out of its own.","parameters":[{"description":"ID of the connection","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"ID of the workflow run","in":"path","name":"run_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"The `name` of a `record` field of one of the prompt's choices, or a `rows` field's record column as `<field>.<column>` (`records.list_id`).","example":"list_id","in":"query","name":"field","required":true,"schema":{"type":"string"}},{"description":"For a `rows` field's record column: the row's `key`, whose `kinds` says the list searched. Needed when the column's `kind` is null.","example":"customer_ref","in":"query","name":"row","required":false,"schema":{"type":"string"}},{"description":"What the person typed: 2 to 100 characters, once trimmed. Empty or left out, the first 20 active records of the field's list by name: what to offer as the box is focused before anything is typed. One character is refused (`422`).","example":"Lone","in":"query","name":"q","required":false,"schema":{"maxLength":100,"type":"string"}},{"description":"The `token` of the prompt being answered, as `links.search` carries it. Refused with `409 prompt_changed` once the run has asked again or moved on.","in":"query","name":"prompt_token","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"example":{"data":[{"detail":"Customer · ar@lonestar.example · 512-555-0142 · Austin 78701","label":"Lone Star Supply","value":"80000012-1712345678"},{"detail":"Vendor · inactive","label":"Lone Star Supply Co","value":"80000031-1712399999"}]},"schema":{"properties":{"data":{"items":{"properties":{"detail":{"description":"Its list, `inactive` when it is, then what tells it apart, as far as the index holds it: company name, email, phone, city and postal code, account number. Parts joined with ` · `, for a person to read.","example":"Customer · ar@lonestar.example · 512-555-0142 · Austin 78701","type":"string"},"label":{"description":"The record's full name.","example":"Lone Star Supply","type":"string"},"value":{"description":"What to answer the field with: the record's ListID.","example":"80000012-1712345678","type":"string"}},"required":["value","label","detail"],"type":"object"},"maxItems":20,"type":"array"}},"required":["data"],"type":"object"}}},"description":"The records like `q`, best first: at most 20, and none when nothing is."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No run with that id on that connection, or the connection does not belong to this app."},"409":{"content":{"application/json":{"example":{"errors":{"code":"prompt_changed","detail":"the run isn't asking this question any more; search from its prompt as it is now"}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"`prompt_changed` (`errors.code`): the run isn't asking the question `prompt_token` names any more -- it has asked again, or moved on. Read the run for the question it is asking now. Or `name_index_building`: the connection's name index is still being built (`errors.detail` says how to be told when it is ready); search again then."},"422":{"content":{"application/json":{"example":{"errors":{"code":"invalid_q","detail":"q must be 2 to 100 characters"}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The search is refused: `invalid_field` (`field` isn't a `record` field of the prompt's choices, or a `rows` field's record column; `errors.detail` names the ones it has), `invalid_row` (a column whose list depends on the row, searched without one of its rows' `key`), `invalid_q` (`q` is missing, or not 2 to 100 characters), `invalid_prompt_token` (`prompt_token` was not a string), or `matching_requires_realtime` (the connection has no name index any more: it was made standard)."}},"security":[{"apiKey":[]}],"summary":"Search for the record a question's field means","tags":["Workflows"]}},"/connections/{connection_id}/invoices":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listInvoices_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `InvoiceQueryRq`.\n\nFinds invoices: exact ones by `txn_id` or `ref_number`, or a filtered set by customer (`entity_filter`), date, account or `paid_status`. Lines come back only with `include_line_items`, and the payments and credits applied to each invoice only with `include_linked_txns`. An invoice's applied_amount comes back negative (-80.00 for one paid 80.00), so balance_remaining is its total plus applied_amount (observed on QuickBooks Enterprise 24.0). Set `iterator` to page through many results.\n\nIntuit's reference: [InvoiceQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/invoicequery).","operationId":"listInvoices","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items` or `include_linked_txns`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"description":"If you set `include_linked_txns` to true, then the returned object will include a list of all the transactions linked to the queried object. (This list is similar to the History view of a transaction in the user interface, but not identical, as the SDK list contains only linked transactions, not items.) Each linked transaction will be represented by a `linked_txn` aggregate.","in":"query","name":"include_linked_txns","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["ARAccountRef","AppliedAmount","BalanceRemaining","BalanceRemainingInHomeCurrency","BillAddress","BillAddressBlock","ClassRef","CurrencyRef","CustomerMsgRef","CustomerRef","CustomerSalesTaxCodeRef","DataExtRet","DiscountLineRet","DueDate","EditSequence","ExchangeRate","ExternalGUID","FOB","InvoiceLineGroupRet","InvoiceLineRet","IsFinanceCharge","IsPaid","IsPending","IsTaxIncluded","IsToBeEmailed","IsToBePrinted","ItemSalesTaxRef","LinkedTxn","Memo","Other","PONumber","RefNumber","SalesRepRef","SalesTaxLineRet","SalesTaxPercentage","SalesTaxTotal","ShipAddress","ShipAddressBlock","ShipDate","ShipMethodRef","ShippingLineRet","Subtotal","SuggestedDiscountAmount","SuggestedDiscountDate","TemplateRef","TermsRef","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"Allows you to filter for transactions according to whether or not they are paid.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"paid_status","required":false,"schema":{"enum":["All","NotPaidOnly","PaidOnly"],"type":"string"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listInvoices_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List invoices","tags":["Invoices"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createInvoice_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `InvoiceAddRq`. The `invoice_add` wrapper from qbXML is also accepted.\n\nAdds an invoice: what a customer owes for a sale they didn't pay in full when it was made (a sale paid in full is a sales receipt). `customer_ref` is required. Each line in `invoice_line_add` names an `item_ref` and two of `quantity`, `rate` and `amount`; QuickBooks works out the third. An inventory item on an invoice lowers stock and posts its cost of goods sold. To invoice a sales order, link it with `link_to_txn_id`. The `add_transaction` workflow template finds the customer and items first and creates any that are missing.\n\nIn QuickBooks, invoices and estimates use similar fields, and an estimate can be converted into an invoice after the customer accepts the estimate. However, in the SDK, there is currently no ability to create an invoice directly from an estimate (you can’t link an invoice to an estimate).\n\nIf you Add an invoice that has an inventory item on it, QB will automatically calculate COGS and post it to the COGS account. (The inventory item will need to be setup to post to the COGS account and must have a unit cost in it.) However, notice that such an InvoiceAdd has sales prices, not cost, so the Add isn’t impacting the cost of the item. The cost of the item is only affected by purchases (bills and item receipts) sales and inventory adjustments.\n\nSee also: [Inventory costing](https://docs.qubesync.com/quickbooks-notes#inventory-costing), [Line item taxes](https://docs.qubesync.com/quickbooks-notes#line-item-taxes).\n\nIntuit's reference: [InvoiceAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/invoiceadd).","operationId":"createInvoice","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"bill_address":{"addr1":"123 Main St","city":"Springfield","postal_code":"62701","state":"IL"},"customer_ref":{"full_name":"Acme Corp"},"invoice_line_add":[{"desc":"Blue widget, large","item_ref":{"full_name":"Widget"},"quantity":2,"rate":125.0}],"memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15"},"schema":{"properties":{"discount_line_add":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"is_taxable":{"type":"boolean"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"invoice_line_group_add":{"description":"Represents a previously defined group of lines in the invoice. Compare with InvoiceLine, which represents just one line in the invoice.\n\n`invoice_line_add` and `invoice_line_group_add` combine: any number of each. QuickBooks receives them in that order: every `invoice_line_add`, then every `invoice_line_group_add`.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["item_group_ref"],"type":"object"},"type":"array"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"set_credit":{"items":{"properties":{"applied_amount":{"description":"Amount of a credit that is applied to a customer’s invoice, or amount of a payment that is applied to a particular bill or vendor credit.","type":"number"},"credit_txn_id":{"description":"The ID of the credit memo that you are applying to this invoice or bill.","type":"string"},"override":{"description":"Option to override credit.","type":"boolean"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"required":["applied_amount","credit_txn_id"],"type":"object"},"type":"array"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"is_pending":{"description":"If `is_pending` is set to true, the invoice hasn’t been completed. Pending sales might include unpaid orders, estimates, tracked hours that haven’t yet been billed, or sales of back-ordered items.","type":"boolean"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"shipping_line_add":{"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"}},"required":["amount"],"type":"object"},"is_finance_charge":{"description":"If `is_finance_charge` is true, a finance-charge item has been added to the invoice.","type":"boolean"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"invoice_line_add":{"description":"Represents one line in the invoice. Compare with InvoiceLineGroup, which represents a previously defined group of lines in the invoice.\n\n`invoice_line_add` and `invoice_line_group_add` combine: any number of each. QuickBooks receives them in that order: every `invoice_line_add`, then every `invoice_line_group_add`.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["rate","price_level_ref"]},{"required":["rate_percent","price_level_ref"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"link_to_txn":{"description":"When used with InvoiceAdd, the transaction you are linking to via this field must be a SalesOrder; links to other transactions, such as to estimates, aren’t currently supported. When used with BillAdd or ItemReceiptAdd, the transaction you are linking to via this field must be a PurchaseOrder: links to other transactions aren’t currently supported.","properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"required":["txn_id","txn_line_id"],"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"option_for_price_rule_conflict":{"description":"Flag to override price rule conflict.","enum":["BasePrice","Zero"],"type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"link_to_txn_id":{"items":{"type":"string"},"type":"array"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"If `due_date` isn’t included in an InvoiceAdd request, QuickBooks might determine the due date according to the terms set for this customer.","format":"date","type":"string"},"sales_tax_line_add":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"po_number":{"description":"Purchase order number.","type":"string"},"memo":{"description":"Message that appears in reports, but not on the invoice.","type":"string"},"txn_date":{"description":"The date of the invoice. If you leave `txn_date` out of an InvoiceAdd message, QuickBooks might prefill it with the date of the invoice that was most recently saved.","format":"date","type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"},"include_ret_element":{"items":{"enum":["ARAccountRef","AppliedAmount","BalanceRemaining","BalanceRemainingInHomeCurrency","BillAddress","BillAddressBlock","ClassRef","CurrencyRef","CustomerMsgRef","CustomerRef","CustomerSalesTaxCodeRef","DataExtRet","DiscountLineRet","DueDate","EditSequence","ExchangeRate","ExternalGUID","FOB","InvoiceLineGroupRet","InvoiceLineRet","IsFinanceCharge","IsPaid","IsPending","IsTaxIncluded","IsToBeEmailed","IsToBePrinted","ItemSalesTaxRef","LinkedTxn","ListID","Memo","Other","OwnerID","PONumber","RefNumber","SalesRepRef","SalesTaxLineRet","SalesTaxPercentage","SalesTaxTotal","ShipAddress","ShipAddressBlock","ShipDate","ShipMethodRef","ShippingLineRet","Subtotal","SuggestedDiscountAmount","SuggestedDiscountDate","TemplateRef","TermsRef","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},"required":["customer_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createInvoice_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create invoice","tags":["Invoices"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateInvoice_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `InvoiceModRq`, from qbXML 2.1. The `invoice_mod` wrapper from qbXML is also accepted.\n\nChanges an invoice. Send its `txn_id` and the `edit_sequence` QuickBooks last returned for it. To change a line, send it in `invoice_line_mod` with its `txn_line_id`; to add a line, send `txn_line_id` `-1`. Some fields can't be cleared: if you send `customer_ref`, `txn_date`, `due_date`, or a line's `item_ref`, `quantity`, `rate` or `amount`, it must have a value.\n\nSome fields in an InvoiceMod request can’t be cleared. If any of the following fields is included in an invoice modify request, it must contain a value:\n\n- `customer_ref`\n- `ar_account_ref`\n- `template_ref`\n- `txn_date`\n- `is_pending`\n- `due_date`\n- `item_sales_tax_ref`\n- `ship_date`\n- `is_to_be_printed`\n\nWithin `invoice_line_mod` or `invoice_line_group_mod`:\n\n- `item_ref`\n- Quantity\n- Rate\n- Amount\n- `sales_tax_code_ref`\n- `override_item_account_ref`\n\n(For more details about what it means for a field to be clearable or not clearable, see the QB SDK Programmer’s Guide ([PDF](https://developer.intuit.com/app/developer/logged-in-content/QBSDK_ProGuide.pdf), 9.6 MB).)\n\nIntuit's reference: [InvoiceMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/invoicemod).","operationId":"updateInvoice","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"bill_address":{"addr1":"123 Main St","city":"Springfield","postal_code":"62701","state":"IL"},"customer_ref":{"full_name":"Acme Corp"},"edit_sequence":"1700000000","memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","txn_id":"1A2B-1700000000"},"schema":{"properties":{"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"If `due_date` isn’t included in an InvoiceAdd request, QuickBooks might determine the due date according to the terms set for this customer.","format":"date","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"include_ret_element":{"items":{"enum":["ARAccountRef","AppliedAmount","BalanceRemaining","BalanceRemainingInHomeCurrency","BillAddress","BillAddressBlock","ClassRef","CurrencyRef","CustomerMsgRef","CustomerRef","CustomerSalesTaxCodeRef","DataExtRet","DiscountLineRet","DueDate","EditSequence","ExchangeRate","ExternalGUID","FOB","InvoiceLineGroupRet","InvoiceLineRet","IsFinanceCharge","IsPaid","IsPending","IsTaxIncluded","IsToBeEmailed","IsToBePrinted","ItemSalesTaxRef","LinkedTxn","ListID","Memo","Other","OwnerID","PONumber","RefNumber","SalesRepRef","SalesTaxLineRet","SalesTaxPercentage","SalesTaxTotal","ShipAddress","ShipAddressBlock","ShipDate","ShipMethodRef","ShippingLineRet","Subtotal","SuggestedDiscountAmount","SuggestedDiscountDate","TemplateRef","TermsRef","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"invoice_line_group_mod":{"description":"Represents a previously defined group of lines in the invoice. Compare with InvoiceLine, which represents just one line in the invoice.\n\n`invoice_line_mod` and `invoice_line_group_mod` combine: any number of each. QuickBooks receives them in that order: every `invoice_line_mod`, then every `invoice_line_group_mod`.","items":{"properties":{"invoice_line_mod":{"description":"Represents one line in the invoice. Compare with InvoiceLineGroup, which represents a previously defined group of lines in the invoice.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["rate","price_level_ref"]},{"required":["rate_percent","price_level_ref"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"option_for_price_rule_conflict":{"description":"Flag to override price rule conflict.","enum":["BasePrice","Zero"],"type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"invoice_line_mod":{"description":"Represents one line in the invoice. Compare with InvoiceLineGroup, which represents a previously defined group of lines in the invoice.\n\n`invoice_line_mod` and `invoice_line_group_mod` combine: any number of each. QuickBooks receives them in that order: every `invoice_line_mod`, then every `invoice_line_group_mod`.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["rate","price_level_ref"]},{"required":["rate_percent","price_level_ref"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"option_for_price_rule_conflict":{"description":"Flag to override price rule conflict.","enum":["BasePrice","Zero"],"type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"is_pending":{"description":"If `is_pending` is set to true, the invoice hasn’t been completed. Pending sales might include unpaid orders, estimates, tracked hours that haven’t yet been billed, or sales of back-ordered items.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Message that appears in reports, but not on the invoice.","type":"string"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"po_number":{"description":"Purchase order number.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"set_credit":{"items":{"properties":{"applied_amount":{"description":"Amount of a credit that is applied to a customer’s invoice, or amount of a payment that is applied to a particular bill or vendor credit.","type":"number"},"credit_txn_id":{"description":"The ID of the credit memo that you are applying to this invoice or bill.","type":"string"},"override":{"description":"Option to override credit.","type":"boolean"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"required":["applied_amount","credit_txn_id"],"type":"object"},"type":"array"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the invoice. If you leave `txn_date` out of an InvoiceAdd message, QuickBooks might prefill it with the date of the invoice that was most recently saved.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateInvoice_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update invoice","tags":["Invoices"]}},"/workflows/types":{"get":{"description":"The input of every workflow your app has published, at its published version, as JSON Schema: what the libraries' generators (`bin/rails g qube_rails:workflows`, `qube_sync workflows`) write typed start methods from, one per workflow and, for a body whose operation another input names, one per operation. An operation body is `{\"$operation\": \"invoice.create\"}`, a reference to that operation's params (the libraries already hold every operation's types, from `/libraries/operations.json`, whose digest is `operations_digest`); an object holding such bodies is a `oneOf` with a `discriminator` naming the input that picks the operation, one branch per operation, each with the `title` generated code names it by.\n\nA `$operation` body's `set_by_workflow` lists the fields the workflow sets itself (the caller's value is overwritten), which generated types make optional; the rest keep the operation's own required fields. The run checks a body's fields and types when it starts, and required fields when it sends the request. With `include=drafts`, `drafts` adds each workflow whose working copy differs from what is published (or that was never published), so you can type against a version before you publish it. `digest` changes whenever any of this does, and is the `ETag`: send it back as `If-None-Match` for a 304. Only your app's workflows; inputs only for now.","parameters":[{"description":"`drafts` adds each workflow's draft, marked `draft: true`.","in":"query","name":"include","required":false,"schema":{"enum":["drafts"],"type":"string"}},{"description":"The `ETag` of a document you already have: a 304 when it is still current.","in":"header","name":"If-None-Match","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"example":{"data":{"digest":"sha256:9f2c...","include_drafts":false,"operations_digest":"sha256:41ab...","workflows":{"ensure":{"description":"Finds a list record, or creates it.","draft":false,"input":{"additionalProperties":false,"discriminator":{"propertyName":"kind"},"oneOf":[{"properties":{"add":{"$operation":"customer.create","description":"The add to send when nothing is the record."},"kind":{"const":"customer"}},"title":"customer"}],"properties":{"add":{"description":"The add to send when nothing is the record.","type":"object"},"kind":{"description":"The list the add goes to.","type":"string"}},"required":["kind"],"type":"object"},"name":"Ensure a list record","version":1}}}},"schema":{"properties":{"data":{"$ref":"#/components/schemas/WorkflowTypes"}},"type":"object"}}},"description":"The types","headers":{"ETag":{"description":"The document's `digest`, quoted.","schema":{"type":"string"}}}},"304":{"description":"`If-None-Match` named the current document: nothing has changed."}},"security":[{"apiKey":[]}],"summary":"Your workflows' input types","tags":["Workflows"]}},"/connections/{connection_id}/item-inventories":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listItemInventories_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemInventoryQueryRq`.\n\nQueries for the specified inventory item or set of items. Notice that certain modifications to the item can be caused by other transactions, such as ItemReceipts where the item’s on hand quantity is increased. Modifications through these transactions don’t result in changing the `time_modified` stamp (only the Mod operation will do that), but those changes will be detected when you use the `from_modified_date`/`to_modified_date` filters in your query.\n\nNotice that you can’t get an inventory asset value from QuickBooks using this query. Instead, you need to use the General Summary Report query (which currently doesn’t include Assembly Items).\n\nSuppose you needed a way to search for the amount on hand of items that have had their amount changed since a certain date. Again, you wouldn’t use this query, but a GeneralDetailReportQuery that has its GeneralDetailReportType set to “InventoryValuationDetail.” This will tell you which items changed by how much.\n\nAlso, suppose you wanted the on-hand quantity from QB as of a specific date. You would use a General Summary Report of the type Inventory Valuation Summary. (Again, this report doesn’t include Inventory Assemblies.)\n\nIntuit's reference: [ItemInventoryQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/iteminventoryquery).","operationId":"listItemInventories","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `full_name` or `list_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters according to the object’s class.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AssetAccountRef","AverageCost","BarCodeValue","COGSAccountRef","ClassRef","DataExtRet","EditSequence","ExternalGUID","FullName","IncomeAccountRef","IsActive","IsTaxIncluded","ListID","ManufacturerPartNumber","Max","Name","ParentRef","PrefVendorRef","PurchaseCost","PurchaseDesc","PurchaseTaxCodeRef","QuantityOnHand","QuantityOnOrder","QuantityOnSalesOrder","ReorderPoint","SalesDesc","SalesPrice","SalesTaxCodeRef","Sublevel","TimeCreated","TimeModified","UnitOfMeasureSetRef"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listItemInventories_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List item inventories","tags":["Item Inventories"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createItemInventory_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemInventoryAddRq`. The `item_inventory_add` wrapper from qbXML is also accepted.\n\nAdds an inventory item: merchandise the business buys, stocks and resells. `name` is required; give it the accounts it posts to, `income_account_ref`, `cogs_account_ref` and `asset_account_ref`. For stock already on hand that no purchase will record, set `quantity_on_hand` and `total_value`; otherwise leave them at zero and add a bill, which raises both. QuickBooks values stock at its average cost.\n\n- Puchase Information includes `purchase_desc`, `purchase_cost`, `cogs_account_ref`, and `pref_vendor_ref`.\n- Sales Information includes `sales_desc`, `sales_price`, and `sales_tax_code_ref`.\n- Inventory Information includes `asset_account_ref`, `reorder_point`, `quantity_on_hand`, `total_value`, and `inventory_date`.\n\nSee also: [Inventory costing](https://docs.qubesync.com/quickbooks-notes#inventory-costing).\n\nIntuit's reference: [ItemInventoryAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/iteminventoryadd).","operationId":"createItemInventory","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"Widget"},"schema":{"properties":{"asset_account_ref":{"description":"Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cogs_account_ref":{"description":"Refers to the account that QuickBooks uses to track the original cost of goods that are eventually sold. (The AccountType of this account will be CostOfGoodsSold.) In a request, if a `cogs_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["AssetAccountRef","AverageCost","BarCodeValue","COGSAccountRef","ClassRef","DataExtRet","EditSequence","ExternalGUID","FullName","IncomeAccountRef","IsActive","IsTaxIncluded","ListID","ManufacturerPartNumber","Max","Name","OwnerID","ParentRef","PrefVendorRef","PurchaseCost","PurchaseDesc","PurchaseTaxCodeRef","QuantityOnHand","QuantityOnOrder","QuantityOnSalesOrder","ReorderPoint","SalesDesc","SalesPrice","SalesTaxCodeRef","Sublevel","TimeCreated","TimeModified","TxnID","TxnNumber","UnitOfMeasureSetRef"],"type":"string"},"type":"array"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_date":{"description":"The date when an item was converted into an inventory item from some other type of item.","format":"date","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"max":{"description":"Maximum number of items in inventory.","type":"number"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Appears in the Description column of checks, bills, credit card charges, and item receipts when this item is reordered.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity_on_hand":{"description":"The number of these items in inventory. `quantity_on_hand` times `average_cost` is `total_value` in an inventory item list. To change the `quantity_on_hand` for an item, you would have to use InventoryAdjustmentAdd not an ItemInventoryMod.","type":"number"},"reorder_point":{"description":"Quantity at which QuickBooks will remind the user to reorder this inventory item.","type":"number"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"total_value":{"description":"The total value of this inventory. If `total_value` is included, `quantity_on_hand` must also be included and must be greater than zero. If both `quantity_on_hand` and `purchase_cost` are included, then `total_value` will be set to `quantity_on_hand` times `purchase_cost`, regardless of what `total_value` is explicitly set to.","type":"number"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createItemInventory_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create item inventory","tags":["Item Inventories"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateItemInventory_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemInventoryModRq`. The `item_inventory_mod` wrapper from qbXML is also accepted.\n\nModifies an inventory item. Starting with qbXML spec 7.0, you can modify the income account ref, using the `income_account_ref` aggregate and the `apply_income_account_ref_to_existing_txns` boolean. You need to use the `apply_income_account_ref_to_existing_txns` boolean because the QuickBooks UI displays a prompt asking whether the change should apply to existing transactions or not. Specifying True for the boolean basically dismisses this with a “Yes” answer, allowing your changes to be made and changes any existing transactions that use the item with that AccountRef.\n\nSpecifying “False” means that the mod won’t take affect if there are existing transactions.\n\nSetting this to “True” should be used with caution and normally only after some user has indicated that they want those changes made to all those existing transactions!\n\nIf any affected transactions are protected by a closing date and password, the `income_account_ref` changes won’t be made and so the Mod request will return an error without making the requested Mod.\n\nSee also: [Inventory costing](https://docs.qubesync.com/quickbooks-notes#inventory-costing).\n\nIntuit's reference: [ItemInventoryMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/iteminventorymod).","operationId":"updateItemInventory","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Widget"},"schema":{"properties":{"apply_cogs_account_ref_to_existing_txns":{"description":"Effectively suppresses the UI prompt that is displayed upon a COGS account change when existing transactions use the account.","type":"boolean"},"apply_income_account_ref_to_existing_txns":{"description":"Used to support changing the AccountRef in the Mod request. When you do this, the QuickBooks UI normally displays a prompt asking whether the change should apply to existing transactions or not. Specifying False basically dismisses this with a “No” answer; specifying True dismisses it with a “Yes” answer and then changes the existing transactions that use the item with that AccountRef.","type":"boolean"},"asset_account_ref":{"description":"Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cogs_account_ref":{"description":"Refers to the account that QuickBooks uses to track the original cost of goods that are eventually sold. (The AccountType of this account will be CostOfGoodsSold.) In a request, if a `cogs_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"force_uom_change":{"description":"By Default `force_uom_change` is false. However, in item Mod requests, you need to set the `force_uom_change` field to True if you are changing the UOM set and the base unit of the new set doesn’t match the base unit of the UOM set currently assigned to the item. This does the same thing as the user accepting the warning prompt in the UI.","type":"boolean"},"include_ret_element":{"items":{"enum":["AssetAccountRef","AverageCost","BarCodeValue","COGSAccountRef","ClassRef","DataExtRet","EditSequence","ExternalGUID","FullName","IncomeAccountRef","IsActive","IsTaxIncluded","ListID","ManufacturerPartNumber","Max","Name","OwnerID","ParentRef","PrefVendorRef","PurchaseCost","PurchaseDesc","PurchaseTaxCodeRef","QuantityOnHand","QuantityOnOrder","QuantityOnSalesOrder","ReorderPoint","SalesDesc","SalesPrice","SalesTaxCodeRef","Sublevel","TimeCreated","TimeModified","TxnID","TxnNumber","UnitOfMeasureSetRef"],"type":"string"},"type":"array"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"max":{"description":"Maximum number of items in inventory.","type":"number"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Appears in the Description column of checks, bills, credit card charges, and item receipts when this item is reordered.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"reorder_point":{"description":"Quantity at which QuickBooks will remind the user to reorder this inventory item.","type":"number"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateItemInventory_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update item inventory","tags":["Item Inventories"]}},"/connections/{connection_id}/sales-reps":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listSalesReps_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SalesRepQueryRq`.\n\nQueries for the specified sales rep or set of reps.\n\nIntuit's reference: [SalesRepQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/salesrepquery).","operationId":"listSalesReps","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["EditSequence","Initial","IsActive","ListID","SalesRepEntityRef","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listSalesReps_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List sales reps","tags":["Sales Reps"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createSalesRep_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SalesRepAddRq`. The `sales_rep_add` wrapper from qbXML is also accepted.\n\nAdds a sales rep. The sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A SalesRepRef refers to a person on the SalesRep list. In a request, if a SalesRepRef aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.\n\nIntuit's reference: [SalesRepAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/salesrepadd).","operationId":"createSalesRep","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"initial":"JD","sales_rep_entity_ref":{"full_name":"Jane Doe"}},"schema":{"properties":{"include_ret_element":{"items":{"enum":["EditSequence","ExternalGUID","Initial","IsActive","ListID","OwnerID","SalesRepEntityRef","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"initial":{"description":"The initials of a sales representative’s name.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_rep_entity_ref":{"description":"Refers to the sales representative’s full information on the Employee, Vendor, or OtherName list. In a request, if a `sales_rep_entity_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. Notice that you can’t supply a customer name here.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["initial","sales_rep_entity_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createSalesRep_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create sales rep","tags":["Sales Reps"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateSalesRep_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SalesRepModRq`, from qbXML 3.0. The `sales_rep_mod` wrapper from qbXML is also accepted.\n\nModifies a sales rep record.\n\nIntuit's reference: [SalesRepMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/salesrepmod).","operationId":"updateSalesRep","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000"},"schema":{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"include_ret_element":{"items":{"enum":["EditSequence","ExternalGUID","Initial","IsActive","ListID","OwnerID","SalesRepEntityRef","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"initial":{"description":"The initials of a sales representative’s name.","type":"string"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_rep_entity_ref":{"description":"Refers to the sales representative’s full information on the Employee, Vendor, or OtherName list. In a request, if a `sales_rep_entity_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. Notice that you can’t supply a customer name here.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateSalesRep_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update sales rep","tags":["Sales Reps"]}},"/connections":{"get":{"description":"The connections belonging to the authenticated app, oldest first, a page at a time: `meta.total_pages` says how many pages there are.","operationId":"listConnections","parameters":[{"description":"Which page of the list, from 1.","in":"query","name":"page","schema":{"default":1,"minimum":1,"type":"integer"}},{"description":"How many to a page, at most 100.","in":"query","name":"page_size","schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionsList"}}},"description":"A page of connections"},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrors"}}},"description":"`page` or `page_size` out of range: `errors` names it."}},"security":[{"apiKey":[]}],"summary":"List connections","tags":["Connections"]},"post":{"callbacks":{"connection_events":{"{$request.body#/webhook_url}":{"post":{"description":"Sent to the connection's `webhook_url` (set here or by Update a connection), signed with `X-QUBE-Signature` like every other webhook (see the Webhooks guide). One of five events:\n\n- `connection.connected`: the Web Connector checked in for the first time, or for the first time since your customer chose Set up again on the connection's onboarding page (`connection.setup` says which). This is the signal to act on: mark the account connected. Your customer finishes the setup on the QuickBooks computer, which usually isn't signed in to your app, so your app hears it here rather than from their browser.\n- `connection.setup_cancelled`: your customer chose Cancel setup on the onboarding page. The connection is unchanged, and its onboarding link still works, so offer them Connect again.\n- `connection.company_file_changed`: your customer chose Use a different company file on the onboarding page, to connect another QuickBooks company file to this connection. Every QuickBooks id you stored for this connection (ListID, TxnID, EditSequence) belonged to the old file: stop using them, and once the connection is connected again check each on the new file (a query by the ids), keeping the ones it finds under the same name (a renamed, moved or copied file keeps most of them), asking your customer about the ones it finds under another name, and treating the rest as not in QuickBooks. Your requests that were still waiting ended in `error`, each with its webhook, and its live workflow runs were cancelled; requests already taken by the Web Connector finish on the old file, or end in `error` if it stops without sending them. The connection is set up again from here: `connection.connected` follows when the Web Connector checks in, and the new file is the one it opens. The event never carries the file's path.\n- `connection.stalled`: one of your requests has waited too long to be taken: past when the Web Connector was due to take it, by the longer of 15 minutes and twice the Web Connector's schedule. `connection.stall_reason` says why. `not_checking_in`: the Web Connector hasn't checked in when it was due, so the QuickBooks computer is probably off or offline. `quickbooks_unavailable`: the Web Connector is checking in but can't reach QuickBooks, usually because QuickBooks isn't open with the company file; the wait then counts from when your request was queued. If the reason changes while the stall goes on, the event comes again with the new reason and a newer `revision`. A connection with nothing of yours waiting is never stalled, and a simulated one only when its simulator's `stalled` fault is set, to test this handler.\n- `connection.resumed`: a stalled connection's requests aren't waiting past that any more: they were taken, answered or deleted, or the Web Connector is checking in again. Only ever after a `connection.stalled`.\n\nA delivery can come more than once, and deliveries can come out of order. Take each `delivery_id` once, and apply an event only when its `revision` is newer than the last you applied.","requestBody":{"content":{"application/json":{"examples":{"company_file_changed":{"summary":"Your customer chose Use a different company file","value":{"app_id":"98f339a4-32e8-424a-987e-ccaf5bcaa620","connection":{"id":"3f9c2a71-5d4e-4b8a-9c1f-7e2d6a5b8c90","last_connected_at":"2026-10-16T10:12:30Z","name":"Riverbend Electric","type":"standard"},"delivery_id":"8a2d4f6c-1e3b-4c5d-9f7a-2b6e8d0c4a17","event":"connection.company_file_changed","links":{"self":"https://qubesync.com/api/v2/connections/3f9c2a71-5d4e-4b8a-9c1f-7e2d6a5b8c90"},"revision":4,"sandbox":false,"timestamp":1792353150}},"connected":{"summary":"The Web Connector checked in for the first time","value":{"app_id":"98f339a4-32e8-424a-987e-ccaf5bcaa620","connection":{"id":"3f9c2a71-5d4e-4b8a-9c1f-7e2d6a5b8c90","last_connected_at":"2026-10-18T19:04:11Z","name":"Riverbend Electric","setup":"first","type":"standard"},"delivery_id":"0f8a6c2e-4b1d-4e7a-9c3f-2d5b8e1a7c40","event":"connection.connected","links":{"self":"https://qubesync.com/api/v2/connections/3f9c2a71-5d4e-4b8a-9c1f-7e2d6a5b8c90"},"revision":1,"sandbox":false,"timestamp":1792350252}},"resumed":{"summary":"The stalled connection's requests are being taken again","value":{"app_id":"98f339a4-32e8-424a-987e-ccaf5bcaa620","connection":{"id":"3f9c2a71-5d4e-4b8a-9c1f-7e2d6a5b8c90","last_connected_at":"2026-10-20T09:41:08Z","name":"Riverbend Electric","stalled_at":"2026-10-20T08:30:00Z","type":"standard"},"delivery_id":"c7e9a1b3-5d7f-4b9a-8c2e-4f6a8b0c2d57","event":"connection.resumed","links":{"self":"https://qubesync.com/api/v2/connections/3f9c2a71-5d4e-4b8a-9c1f-7e2d6a5b8c90"},"revision":3,"sandbox":false,"timestamp":1792489270}},"setup_cancelled":{"summary":"Your customer chose Cancel setup","value":{"app_id":"98f339a4-32e8-424a-987e-ccaf5bcaa620","connection":{"id":"3f9c2a71-5d4e-4b8a-9c1f-7e2d6a5b8c90","last_connected_at":null,"name":"Riverbend Electric","type":"standard"},"delivery_id":"5c1e9a3b-7d2f-4a6e-8b0c-1f4d7a2e9b63","event":"connection.setup_cancelled","links":{"self":"https://qubesync.com/api/v2/connections/3f9c2a71-5d4e-4b8a-9c1f-7e2d6a5b8c90"},"revision":1,"sandbox":false,"timestamp":1792349550}},"stalled":{"summary":"The Web Connector hasn't checked in when it was due","value":{"app_id":"98f339a4-32e8-424a-987e-ccaf5bcaa620","connection":{"expected_check_in_at":"2026-10-20T08:05:21Z","id":"3f9c2a71-5d4e-4b8a-9c1f-7e2d6a5b8c90","last_connected_at":"2026-10-20T08:00:21Z","name":"Riverbend Electric","stall_reason":"not_checking_in","type":"standard","waiting":{"oldest_queued_at":"2026-10-20T08:12:40Z","requests":3}},"delivery_id":"a2d4f6b8-1c3e-4a5b-9d7f-0e2c4a6b8d10","event":"connection.stalled","links":{"self":"https://qubesync.com/api/v2/connections/3f9c2a71-5d4e-4b8a-9c1f-7e2d6a5b8c90"},"revision":2,"sandbox":false,"timestamp":1792485001}},"stalled_quickbooks_unavailable":{"summary":"The Web Connector is checking in but can't reach QuickBooks","value":{"app_id":"98f339a4-32e8-424a-987e-ccaf5bcaa620","connection":{"expected_check_in_at":"2026-10-21T14:40:00Z","id":"8b2e4d6f-1a3c-4e5b-9f7d-0c2a4e6b8d1f","last_connected_at":"2026-10-21T14:19:44Z","name":"Hollis Dental","stall_reason":"quickbooks_unavailable","type":"realtime","waiting":{"oldest_queued_at":"2026-10-21T14:02:30Z","requests":2}},"delivery_id":"d4f6a8c0-2e4b-4c6d-8a1f-3b5d7f9a1c23","event":"connection.stalled","links":{"self":"https://qubesync.com/api/v2/connections/8b2e4d6f-1a3c-4e5b-9f7d-0c2a4e6b8d1f"},"revision":2,"sandbox":false,"timestamp":1792592405}}},"schema":{"$ref":"#/components/schemas/ConnectionWebhook"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours; after the last attempt, your organization's owners are emailed."}},"summary":"Something happened to the connection"}}}},"description":"Creates a connection for the authenticated app. A `standard`/`realtime` connection needs onboarding (`links.onboarding`) before it can be used; a `simulated` one (beta) is usable immediately. Only `name`, `type` and `webhook_url` can be set. The rest of a connection's fields are QuBe Sync's: sending `username`, `password`, `company_file`, `quickbooks_product_name` or `last_connected_at` is refused with `422` naming the field. Set a password with `POST /connections/{connection_id}/password`.\n\nA production app can have connections only once its organization has billing: until then every type, `simulated` included, is refused with `402 billing_required`. A sandbox app can always have them.\n\nPass a `webhook_url` to hear when the connection is set up: QuBe Sync sends `connection.connected` when the Web Connector first checks in, and `connection.setup_cancelled` if your customer cancels the setup. It also sends `connection.company_file_changed`, `connection.stalled` and `connection.resumed`: see the callback. v2 doesn't take a `redirect_url`, and sending one is refused with `422`: the connection's events say what the redirect did, signed and from QuBe Sync rather than from your customer's browser.","operationId":"createConnection","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"description":"Optional. A blank name (empty or only whitespace) is stored as `null`, and surrounding whitespace is trimmed. Left blank, a `standard` or `realtime` connection takes QuickBooks' own company name once the first request is processed; a `simulated` connection takes its simulated company's name (`Simulated Company`) straight away.","type":"string"},"type":{"default":"standard","description":"Optional, `standard` by default. Create the connections your integration runs workflows on as `realtime`: workflows run on `realtime` and `simulated` connections only, and a connection's type can't be changed through the API afterwards (it can be upgraded from its page in the dashboard).","enum":["standard","realtime","simulated"],"type":"string"},"webhook_url":{"description":"Optional. Where QuBe Sync sends the connection's own events: `connection.connected` when the Web Connector first checks in (and again after your customer chooses Set up again), `connection.setup_cancelled`, `connection.company_file_changed`, `connection.stalled` and `connection.resumed` (see the callback on Create a connection). Point it at your own record, such as `/webhooks/qube/connection/42` on your app. Left out, nothing is sent. A `simulated` connection is connected as it's created, so its `connection.connected` goes out straight away. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","example":"https://myapp.example/webhooks/qube/connection/42","format":"uri","maxLength":2048,"type":"string"}},"type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Connection"}},"type":"object"}}},"description":"Created"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"content":{"application/json":{"examples":{"billing_required":{"summary":"A production app without billing","value":{"errors":{"code":"billing_required","detail":"This is a production app, and its organization doesn't have billing set up yet, so it can't have connections. An owner of the organization can set up billing in the QuBe Sync dashboard. To test before then, use the organization's sandbox app."}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"`billing_required`: this is a production app, and its organization has no active billing yet. A production app can't have connections of any type, `simulated` included, until an owner of the organization sets up billing in the dashboard. Use the sandbox app to test before then. Nothing was saved."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrors"}}},"description":"Invalid fields, such as a `webhook_url` webhooks can't go to (not an absolute http or https URL, a username or password in it, longer than 2048 characters, or in production a private address), or a field that can't be set here, such as `redirect_url` or `last_connected_at`. `errors` names each one. Nothing was saved."}},"security":[{"apiKey":[]}],"summary":"Create a connection","tags":["Connections"]}},"/connections/{connection_id}/special-accounts":{"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createSpecialAccount_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SpecialAccountAddRq`, from qbXML 6.0. The `special_account_add` wrapper from qbXML is also accepted.\n\nAdds a special account of the specified type to QuickBooks. A special account is an account normally created automatically as needed within the QuickBooks UI, or in the SDK via the SpecialAccountAdd request. Notice that default names for each account type are used, so there is no provision for a name field here.\n\nIf a special account of the type you are trying to add already exists in the QuickBooks company, the response will return a warning and the account won’t be added.\n\nNotice that the Ret object for this request is AccountRet. Also, notice that you use AccountQuery to get accounts, including special accounts.\n\nIntuit's reference: [SpecialAccountAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/specialaccountadd).","operationId":"createSpecialAccount","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"special_account_type":"AccountsPayable"},"schema":{"properties":{"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["AccountNumber","AccountType","Balance","BankNumber","CashFlowClassification","CurrencyRef","DataExtRet","Desc","DetailAccountType","EditSequence","ExternalGUID","FullName","IsActive","IsTaxAccount","LastCheckNumber","ListID","Name","OwnerID","ParentRef","SalesTaxCodeRef","SpecialAccountType","Sublevel","TaxLineInfoRet","TimeCreated","TimeModified","TotalBalance","TxnID","TxnNumber"],"type":"string"},"type":"array"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"special_account_type":{"description":"If `special_account_type` returns a value, then QuickBooks automatically created this account when it was needed. Some special accounts can’t be overridden, because QuickBooks uses them exclusively for special purposes.","enum":["AccountsPayable","AccountsReceivable","CondenseItemAdjustmentExpenses","CostOfGoodsSold","DirectDepositLiabilities","Estimates","ExchangeGainLoss","InventoryAssets","ItemReceiptAccount","OpeningBalanceEquity","PayrollExpenses","PayrollLiabilities","PettyCash","PurchaseOrders","ReconciliationDifferences","RetainedEarnings","SalesOrders","SalesTaxPayable","UncategorizedExpenses","UncategorizedIncome","UndepositedFunds"],"type":"string"}},"required":["special_account_type"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createSpecialAccount_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create special account","tags":["Special Accounts"]}},"/connections/{connection_id}/standard-terms":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listStandardTerms_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `StandardTermsQueryRq`.\n\nQueries for the specified standard term or set of terms.\n\nIntuit's reference: [StandardTermsQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/standardtermsquery).","operationId":"listStandardTerms","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["DiscountPct","EditSequence","IsActive","ListID","Name","StdDiscountDays","StdDueDays","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listStandardTerms_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List standard terms","tags":["Standard Terms"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createStandardTerms_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `StandardTermsAddRq`. The `standard_terms_add` wrapper from qbXML is also accepted.\n\nAdds a standard term. Standard terms show the number of days within which payment is due and can include a discount for early payment. For example, the following standard term means that payment is due in 30 days, with a 1% discount if payment is made within 10 days:\n\n> 1% 10 Net 30\n\nPayments with date-driven terms, on the other hand, are due by a certain date.\n\nIntuit's reference: [StandardTermsAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/standardtermsadd).","operationId":"createStandardTerms","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"Net 30"},"schema":{"properties":{"discount_pct":{"description":"If payment is received within `std_discount_days` number of days, then this discount will apply to the payment. `discount_pct` must be between 0 and 100.","type":"number"},"include_ret_element":{"items":{"enum":["DiscountPct","EditSequence","ExternalGUID","IsActive","ListID","Name","OwnerID","StdDiscountDays","StdDueDays","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"std_discount_days":{"description":"If payment is received within `std_discount_days` number of days, then `discount_pct` will apply to the payment.","type":"integer"},"std_due_days":{"description":"The number of days until payment is due.","type":"integer"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createStandardTerms_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create standard terms","tags":["Standard Terms"]}},"/connections/{connection_id}/date-driven-terms":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listDateDrivenTerms_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `DateDrivenTermsQueryRq`.\n\nQueries for the specified date-driven terms or set of terms.\n\nIntuit's reference: [DateDrivenTermsQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/datedriventermsquery).","operationId":"listDateDrivenTerms","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["DayOfMonthDue","DiscountDayOfMonth","DiscountPct","DueNextMonthDays","EditSequence","IsActive","ListID","Name","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listDateDrivenTerms_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List date driven terms","tags":["Date Driven Terms"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createDateDrivenTerms_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `DateDrivenTermsAddRq`. The `date_driven_terms_add` wrapper from qbXML is also accepted.\n\nDate-driven terms show the day of the month by which payment is due and can include a discount for early payment. For example, the following date-driven term means that payment is due on the 30th of the month, with a 1% discount if payment is made by the 10th:\n\n> 1% 10 Net 30\n\nPayments with standard terms, on the other hand, are due within a certain number of days.\n\nIntuit's reference: [DateDrivenTermsAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/datedriventermsadd).","operationId":"createDateDrivenTerms","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"day_of_month_due":1,"name":"15th of month"},"schema":{"properties":{"day_of_month_due":{"description":"The day of the month when full payment is due with no discount.","maximum":31,"minimum":1,"type":"integer"},"discount_day_of_month":{"description":"If the payment is made by this day of the month, then `discount_pct` applies.","maximum":31,"minimum":1,"type":"integer"},"discount_pct":{"description":"If payment is received by `discount_day_of_month`, then this discount will apply to the payment. `discount_pct` must be between 0 and 100.","type":"number"},"due_next_month_days":{"description":"Handles cases when an invoice or bill is issued close to its due date. If the invoice or bill is issued within this many days of the due date, payment isn’t due until the following month. For example, with a `day_of_month_due` of 15 and a `due_next_month_days` of 2, an invoice issued on May 13th wouldn’t be due until June 15th.","type":"integer"},"include_ret_element":{"items":{"enum":["DayOfMonthDue","DiscountDayOfMonth","DiscountPct","DueNextMonthDays","EditSequence","ExternalGUID","IsActive","ListID","Name","OwnerID","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["day_of_month_due","name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createDateDrivenTerms_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create date driven terms","tags":["Date Driven Terms"]}},"/connections/{connection_id}/workflow-runs/{run_id}/cancel":{"post":{"description":"Stops a run you started, wherever it is -- `running` or `awaiting_input`, in a workflow it calls or not. Requests already sent to QuickBooks are left to finish; ones not yet sent are withdrawn and listed under `summary.discarded`. Nothing already done in QuickBooks is undone: `summary.side_effects` lists it. The run becomes `cancelled` and a `workflow_run.cancelled` webhook is sent.","parameters":[{"description":"ID of the connection","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"ID of the workflow run","in":"path","name":"run_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"reason":{"description":"Why, in your words. Kept on the run as `cancel_reason`.","type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WorkflowRun"}},"type":"object"}}},"description":"The run, now cancelled"},"404":{"description":"No run with that id on that connection"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"`already_finished`: the run had already ended."}},"security":[{"apiKey":[]}],"summary":"Cancel a workflow run","tags":["Workflows"]}},"/connections/{connection_id}/payment-methods":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listPaymentMethods_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PaymentMethodQueryRq`.\n\nQueries for the specified payment method or set of payment methods.\n\nIntuit's reference: [PaymentMethodQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/paymentmethodquery).","operationId":"listPaymentMethods","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `payment_method_type`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `payment_method_type`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `payment_method_type`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["EditSequence","IsActive","ListID","Name","PaymentMethodType","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `payment_method_type`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `payment_method_type`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `payment_method_type`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `payment_method_type`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"The payment method, such as check, cash, debit card, Visa, etc.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `payment_method_type`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"payment_method_type","required":false,"schema":{"items":{"enum":["AmericanExpress","Cash","Check","DebitCard","Discover","ECheck","GiftCard","MasterCard","Other","OtherCreditCard","Visa"],"type":"string"},"type":"array"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `payment_method_type`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listPaymentMethods_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List payment methods","tags":["Payment Methods"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createPaymentMethod_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PaymentMethodAddRq`. The `payment_method_add` wrapper from qbXML is also accepted.\n\nAdds a payment method, which is the way a customer pays for goods or services, for example, cash, check, or Master Card. A PaymentMethodRef aggregate refers to an item on the PaymentMethod list. In a request, if a PaymentMethodRef aggregate includes both FullName and `list_id`, FullName will be ignored.\n\nIn a SalesReceiptAdd, ReceivePaymentAdd, or ARRefundCreditCard request that contains credit card transaction data supplied from QBMS transaction responses, you must specify the payment method, and the payment method must be a credit card type.\n\nIntuit's reference: [PaymentMethodAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/paymentmethodadd).","operationId":"createPaymentMethod","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"Check"},"schema":{"properties":{"include_ret_element":{"items":{"enum":["EditSequence","ExternalGUID","IsActive","ListID","Name","OwnerID","PaymentMethodType","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"payment_method_type":{"description":"The payment method, such as check, cash, debit card, Visa, etc.","enum":["AmericanExpress","Cash","Check","DebitCard","Discover","ECheck","GiftCard","MasterCard","Other","OtherCreditCard","Visa"],"type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createPaymentMethod_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create payment method","tags":["Payment Methods"]}},"/connections/{connection_id}/items":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listItems_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemQueryRq`.\n\nFinds items of every type in one query: service, inventory, non-inventory, other charge, discount, group and the rest. Filter by `list_id`, `full_name` or name. For an inventory item's current quantity on hand, query inventory items instead: this query doesn't reflect what other transactions did to it.\n\nNotice that you can’t get an inventory asset value from QuickBooks using this query. Instead, you need to use the General Summary Report query (which currently doesn’t include Assembly Items).\n\nSuppose you needed a way to search for the amount on hand of items that have had their amount changed since a certain date. Again, you wouldn’t use this query, but a GeneralDetailReportQuery that has its GeneralDetailReportType set to “InventoryValuationDetail.” This will tell you which items changed by how much.\n\nFinally, suppose you wanted the on-hand quantity from QB as of a specific date. You would use a General Summary Report of the type Inventory Valuation Summary. (Again, this report doesn’t include Inventory Assemblies.)\n\nIntuit's reference: [ItemQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemquery).","operationId":"listItems","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `full_name` or `list_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AccountRef","AcquiredAs","AssetAccountRef","AssetDesc","AssetNumber","AverageCost","BarCodeValue","BuildPoint","COGSAccountRef","ClassRef","CostBasis","DataExtRet","DepositToAccountRef","DiscountRate","DiscountRatePercent","EditSequence","ExternalGUID","FixedAssetSalesInfo","FullName","IncomeAccountRef","IsActive","IsPrintItemsInGroup","IsTaxIncluded","ItemDesc","ItemGroupLine","ItemInventoryAssemblyLine","ItemSalesTaxRef","ListID","Location","ManufacturerPartNumber","Max","Name","Notes","PONumber","ParentRef","PaymentMethodRef","PrefVendorRef","PurchaseCost","PurchaseDate","PurchaseDesc","PurchaseTaxCodeRef","QuantityOnHand","QuantityOnOrder","QuantityOnSalesOrder","ReorderPoint","SalesAndPurchase","SalesDesc","SalesOrPurchase","SalesPrice","SalesTaxCodeRef","SalesTaxReturnLineRef","SerialNumber","SpecialItemType","Sublevel","TaxRate","TaxVendorRef","TimeCreated","TimeModified","UnitOfMeasureSetRef","VendorOrPayeeName","WarrantyExpDate","YearEndAccumulatedDepreciation","YearEndBookValue"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listItems_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List items","tags":["Items"]}},"/connections/{connection_id}/qb-command-exec":{"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/executeQBCommandExec_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `QBCommandExecRq`.\n\nIntuit's reference: [QBCommandExec](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/qbcommandexec).","operationId":"executeQBCommandExec","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"qb_command":"Backup"},"schema":{"properties":{"argument":{"items":{"not":{"anyOf":[{"required":["arg_value","list_id"]},{"required":["arg_value","txn_id"]},{"required":["list_id","txn_id"]},{"properties":{"arg_value":false,"list_id":false,"txn_id":false}}]},"properties":{"arg_name":{"type":"string"},"arg_value":{"description":"Choose exactly one of: `arg_value`, or `list_id`, or `txn_id`.","type":"string"},"list_id":{"description":"Choose exactly one of: `arg_value`, or `list_id`, or `txn_id`.","type":"string"},"txn_id":{"description":"Choose exactly one of: `arg_value`, or `list_id`, or `txn_id`.","type":"string"}},"required":["arg_name"],"type":"object"},"type":"array"},"qb_command":{"enum":["Backup","ExportQBDT2QBO","ExportReport","IIFImport","MobiLinkSync","Restore","ScheduledReport"],"type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["qb_command"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/executeQBCommandExec_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Execute QB command exec","tags":["Qb Command Exec"]}},"/connections/{connection_id}/checks":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listChecks_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CheckQueryRq`.\n\nReturns certain types of checks based on the supplied query criteria. Note that BillPaymentChecks, payroll checks, and liability checks aren’t returned.\n\nNote: The `include_linked_txns` boolean added in qbXML spec 7.0 is actually implemented beginning with the R3 patch to QB2008. It isn’t available in earlier releases of QB2008.\n\nIntuit's reference: [CheckQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/checkquery).","operationId":"listChecks","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items` or `include_linked_txns`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"description":"If you set `include_linked_txns` to true, then the returned object will include a list of all the transactions linked to the queried object. (This list is similar to the History view of a transaction in the user interface, but not identical, as the SDK list contains only linked transactions, not items.) Each linked transaction will be represented by a `linked_txn` aggregate.","in":"query","name":"include_linked_txns","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AccountRef","Address","AddressBlock","Amount","AmountInHomeCurrency","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExpenseLineRet","ExternalGUID","IsPending","IsTaxIncluded","IsToBePrinted","ItemGroupLineRet","ItemLineRet","LinkedTxn","Memo","PayeeEntityRef","RefNumber","SalesTaxCodeRef","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listChecks_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List checks","tags":["Checks"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createCheck_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CheckAddRq`. The `check_add` wrapper from qbXML is also accepted.\n\nThe amount of a check is the total of the amounts assigned to expense lines and item lines. You can write a check for:\n\n- Any expense that you track through expense accounts.\n- The following types of items: fixed asset, non-inventory part, service, and other charge.\n- Putting money into your petty cash account.\n- Inventory part items (if you use the inventory/purchase order feature).\n\nYou can’t use a CheckAdd for any of the following:\n\n- paying a bill by check; instead, use a BillPaymentCheckAdd.\n- paying employees or create paychecks.\n- paying payroll taxes and liabilities.\n- paying sales tax.\n- paying for received items.\n\nNote: The `apply_check_to_txn_add` aggregate added in qbXML spec 7.0 is actually implemented beginning with the R3 patch to QB2008. It isn’t available in earlier releases of QB2008. This feature is useful for doing direct refunds. If you use this feature, please note the following:\n\n- The ARAccountRef will be obtained from the `expense_line_add`\n- The sum of the ApplyCheckToTxn amounts MUST equal the amount of the ExpenseLine\n- Any transactions linked from a check in the ApplyToTxnAdd aggregate MUST use the same AR account specified in the `expense_line_add` `account_ref`, which MUST be an ARAccount\n- Any transactions linked from a check in the ApplyToTxnAdd aggregate must apply to the same entity referred to in the check `payee_entity_ref`.\n\nIntuit's reference: [CheckAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/checkadd).","operationId":"createCheck","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"account_ref":{"full_name":"Checking"},"item_line_add":[{"cost":60.0,"desc":"Blue widget, large","item_ref":{"full_name":"Widget"},"quantity":2}],"memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15"},"schema":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for `expense_line_add` it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"address":{"description":"If an address request fails, some combination of address fields might be too long. In a Check, BillPaymentCheck, or SalesTaxPaymentCheck message, Address is the address that will print on the check.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"apply_check_to_txn_add":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"type":"object"},"type":"array"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_add":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for `expense_line_add` it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"memo":{"description":"The memo that is printed on the check itself.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["AccountRef","Address","AddressBlock","Amount","AmountInHomeCurrency","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExpenseLineRet","ExternalGUID","IsPending","IsTaxIncluded","IsToBePrinted","ItemGroupLineRet","ItemLineRet","LinkedTxn","ListID","Memo","OwnerID","PayeeEntityRef","RefNumber","SalesTaxCodeRef","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"item_group_line_add":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_add` and `item_group_line_add` combine: any number of each. QuickBooks receives them in that order: every `item_line_add`, then every `item_group_line_add`.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["item_group_ref"],"type":"object"},"type":"array"},"item_line_add":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If `item_line_add` doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_add` and `item_group_line_add` combine: any number of each. QuickBooks receives them in that order: every `item_line_add`, then every `item_group_line_add`.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"link_to_txn":{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"required":["txn_id","txn_line_id"],"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"The memo that is printed on the check itself.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date written on the check. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"}},"required":["account_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createCheck_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create check","tags":["Checks"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateCheck_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CheckModRq`, from qbXML 6.0. The `check_mod` wrapper from qbXML is also accepted.\n\nModifies an existing Check. Notice that you can’t use this to modify BillPaymentChecks.\n\nIntuit's reference: [CheckMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/checkmod).","operationId":"updateCheck","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","txn_id":"1A2B-1700000000"},"schema":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"address":{"description":"If an address request fails, some combination of address fields might be too long. In a Check, BillPaymentCheck, or SalesTaxPaymentCheck message, Address is the address that will print on the check.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"apply_check_to_txn_mod":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_id"],"type":"object"},"type":"array"},"clear_expense_lines":{"description":"Set `clear_expense_lines` to true to clear all the expense lines. To modify individual lines, use `expense_line_mod`.","type":"boolean"},"clear_item_lines":{"description":"Set `clear_item_lines` to true to clear all the item lines. To modify individual lines, use `item_line_mod`.","type":"boolean"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_mod":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"The memo that is printed on the check itself.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"include_ret_element":{"items":{"enum":["AccountRef","Address","AddressBlock","Amount","AmountInHomeCurrency","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExpenseLineRet","ExternalGUID","IsPending","IsTaxIncluded","IsToBePrinted","ItemGroupLineRet","ItemLineRet","LinkedTxn","ListID","Memo","OwnerID","PayeeEntityRef","RefNumber","SalesTaxCodeRef","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"item_group_line_mod":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_mod` and `item_group_line_mod` combine: any number of each. QuickBooks receives them in that order: every `item_line_mod`, then every `item_group_line_mod`.","items":{"properties":{"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_mod":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"item_line_mod":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_mod` and `item_group_line_mod` combine: any number of each. QuickBooks receives them in that order: every `item_line_mod`, then every `item_group_line_mod`.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"memo":{"description":"The memo that is printed on the check itself.","type":"string"},"payee_entity_ref":{"description":"`payee_entity_ref` identifies the payee (customer, vendor, employee, or Other Name). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date written on the check. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateCheck_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update check","tags":["Checks"]}},"/connections/{connection_id}/custom-detail-reports":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listCustomDetailReports_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CustomDetailReportQueryRq`, from qbXML 2.0.\n\nA Custom Transaction Detail report gives you complete control over the content of the report. It doesn’t have any default values and consists entirely of customized data. You must specify all the include columns for the transactions you want returned in the report.\n\nIf you want complete control over the report content, you will be interested in both the custom summary report and the custom transaction detail report. Custom reports don’t make any assumptions about the data you are interested in–they require you to specify exactly what data you want included in the report. Your application has to select the row and column axes, and it controls the output using common customization parameters for dates and filters. For the custom transaction detail report, you must specify all the include columns for the transactions you want returned in the report. For these reports, you are also required to specify a date element a DateMacro or a custom date range).\n\nIntuit's reference: [CustomDetailReportQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/customdetailreportquery).","operationId":"listCustomDetailReports","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"The type of report being queried.","in":"query","name":"custom_detail_report_type","required":true,"schema":{"enum":["CustomTxnDetail"],"type":"string"}},{"description":"Set `display_report` to true to display this report within the QuickBooks UI. (Default is false.) If you want the request to display the report without returning any data to your application, set the responseData attribute to includeNone.","in":"query","name":"display_report","required":false,"schema":{"type":"boolean"}},{"description":"Indicates whether this report should include all accounts or just those that are currently in use.","in":"query","name":"include_accounts","required":false,"schema":{"enum":["All","InUse"],"type":"string"}},{"in":"query","name":"include_column","required":true,"schema":{"items":{"enum":["Account","Aging","Amount","AmountDifference","AverageCost","BilledDate","BillingStatus","CalculatedAmount","Class","ClearedStatus","CostPrice","Credit","Currency","Date","Debit","DeliveryDate","DueDate","EstimateActive","ExchangeRate","FOB","IncomeSubjectToTax","Invoiced","Item","ItemDesc","LastModifiedBy","LatestOrPriorState","Memo","ModifiedTime","Name","NameAccountNumber","NameAddress","NameCity","NameContact","NameEmail","NameFax","NamePhone","NameState","NameZip","OpenBalance","OriginalAmount","PONumber","PaidAmount","PaidStatus","PaidThroughDate","PaymentMethod","PayrollItem","PrintStatus","ProgressAmount","ProgressPercent","Quantity","QuantityAvailable","QuantityOnHand","QuantityOnSalesOrder","ReceivedQuantity","RefNumber","RunningBalance","SSNOrTaxID","SalesRep","SalesTaxCode","SerialOrLotNumber","ShipDate","ShipMethod","SourceName","SplitAccount","TaxLine","TaxTableVersion","Terms","TxnID","TxnNumber","TxnType","UnitPrice","UserEdit","ValueOnHand","WageBase","WageBaseTips"],"type":"string"},"type":"array"}},{"description":"Allows you to query for a specified account type or for specific list elements.","in":"query","name":"report_account_filter","required":false,"schema":{"oneOf":[{"properties":{"account_type_filter":{"description":"Allows you to report on a specific account type.","enum":["APAndSalesTax","APOrCreditCard","ARAndAP","AccountsPayable","AccountsReceivable","AllowedFor1099","Asset","BalanceSheet","Bank","BankAndARAndAPAndUF","BankAndUF","CostOfSales","CreditCard","CurrentAsset","CurrentAssetAndExpense","CurrentLiability","Equity","EquityAndIncomeAndExpense","ExpenseAndOtherExpense","FixedAsset","IncomeAndExpense","IncomeAndOtherIncome","Liability","LiabilityAndEquity","LongTermLiability","NonPosting","OrdinaryExpense","OrdinaryIncome","OrdinaryIncomeAndCOGS","OrdinaryIncomeAndExpense","OtherAsset","OtherCurrentAsset","OtherCurrentLiability","OtherExpense","OtherIncome","OtherIncomeOrExpense"],"type":"string"}},"required":["account_type_filter"],"title":"AccountTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"If `report_basis` is rbCash, the report bases income and expenses on the dates when money changed hands.rbAccrual, the report bases income on the dates when customers were invoiced and bases expenses on the dates when bills were entered.rbNone, the report uses the default `report_basis`, which is either the QuickBooks Preference setting or the QuickBooks default for a given type of report.","in":"query","name":"report_basis","required":false,"schema":{"enum":["Accrual","Cash","None"],"type":"string"}},{"description":"Allows you to query for a specified class. Classes can be used to separate transactions into meaningful categories. (For example, transactions could be classified according to department, business location, or type of work.) In QuickBooks, class tracking is off by default.","in":"query","name":"report_class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"The time period covered by this report.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_date_macro","required":false,"schema":{"enum":["All","LastMonth","LastMonthToDate","LastQuarter","LastQuarterToDate","LastWeek","LastWeekToDate","LastYear","LastYearToDate","NextFourWeeks","NextMonth","NextQuarter","NextWeek","NextYear","ThisMonth","ThisMonthToDate","ThisQuarter","ThisQuarterToDate","ThisWeek","ThisWeekToDate","ThisYear","ThisYearToDate","Today","Yesterday"],"type":"string"}},{"description":"The level of detail to include in the report.","in":"query","name":"report_detail_level_filter","required":false,"schema":{"enum":["All","AllExceptSummary","SummaryOnly"],"type":"string"}},{"description":"Allows you to query for a specified name type (customer, employee, vendor, or other) or query for specific list elements.","in":"query","name":"report_entity_filter","required":false,"schema":{"oneOf":[{"properties":{"entity_type_filter":{"description":"Allows you to report on a specific name type.","enum":["Customer","Employee","OtherName","Vendor"],"type":"string"}},"required":["entity_type_filter"],"title":"EntityTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Allows you to query for a specified item type (for example, discount, inventory, or non-inventory) or query for specific list elements.","in":"query","name":"report_item_filter","required":false,"schema":{"oneOf":[{"properties":{"item_type_filter":{"description":"Allows you to report on a specific item type.","enum":["AllExceptFixedAsset","Assembly","Discount","FixedAsset","Inventory","InventoryAndAssembly","NonInventory","OtherCharge","Payment","Sales","SalesTax","Service"],"type":"string"}},"required":["item_type_filter"],"title":"ItemTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Returns reports that were modified between these two dates (inclusive). The range of acceptable dates for both `from_report_modified_date` and `to_report_modified_date` is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).\n\nChoose at most one of: `report_modified_date_range_filter`, or `report_modified_date_range_macro`.","in":"query","name":"report_modified_date_range_filter","required":false,"schema":{"properties":{"from_report_modified_date":{"description":"Selects information from this date and later. The range of acceptable dates is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).","format":"date","type":"string"},"to_report_modified_date":{"description":"Selects information created on this date or earlier. The range of acceptable dates is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).","format":"date","type":"string"}},"type":"object"}},{"description":"The time period covered by this report.\n\nChoose at most one of: `report_modified_date_range_filter`, or `report_modified_date_range_macro`.","in":"query","name":"report_modified_date_range_macro","required":false,"schema":{"enum":["All","LastMonth","LastMonthToDate","LastQuarter","LastQuarterToDate","LastWeek","LastWeekToDate","LastYear","LastYearToDate","NextFourWeeks","NextMonth","NextQuarter","NextWeek","NextYear","ThisMonth","ThisMonthToDate","ThisQuarter","ThisQuarterToDate","ThisWeek","ThisWeekToDate","ThisYear","ThisYearToDate","Today","Yesterday"],"type":"string"}},{"description":"The report will return open balance information up to the `report_open_balance_as_of` date.","in":"query","name":"report_open_balance_as_of","required":false,"schema":{"enum":["ReportEndDate","Today"],"type":"string"}},{"description":"If you omit both `to_report_date` and `from_report_date`, the report will cover the current fiscal year to date.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_period","required":false,"schema":{"properties":{"from_report_date":{"description":"Selects information from this date and later. The range of acceptable `from_report_date` and `to_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"},"to_report_date":{"description":"Selects information created on this date or earlier. The range of acceptable `to_report_date` and `from_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"}},"type":"object"}},{"description":"Allows you to query for posting reports, non-posting reports, or reports that are either one.","in":"query","name":"report_posting_status_filter","required":false,"schema":{"enum":["Either","NonPosting","Posting"],"type":"string"}},{"description":"Allows you to report on specific transaction types (for example, charge, check, deposit, or estimate).","in":"query","name":"report_txn_type_filter","required":false,"schema":{"properties":{"txn_type_filter":{"items":{"enum":["ARRefundCreditCard","All","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"},"type":"array"}},"required":["txn_type_filter"],"type":"object"}},{"description":"`summarize_rows_by` (along with IncludeColumnList, in most cases) determines what data is calculated for this report and controls how the rows are organized and labeled. For example, if you set the value to srbAccount, the report’s row labels might be “Checking,” “Savings,” and so on.","in":"query","name":"summarize_rows_by","required":true,"schema":{"enum":["Account","BalanceSheet","Class","Customer","CustomerType","Day","Employee","FourWeek","HalfMonth","IncomeStatement","ItemDetail","ItemType","Month","Payee","PaymentMethod","PayrollItemDetail","PayrollYtdDetail","Quarter","SalesRep","SalesTaxCode","ShipMethod","TaxLine","Terms","TotalOnly","TwoWeek","Vendor","VendorType","Week","Year"],"type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listCustomDetailReports_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List custom detail reports","tags":["Custom Detail Reports"]}},"/connections/{connection_id}/alerts":{"delete":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/deleteAlert_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `AlertDelRq`.\n\nIntuit's reference: [AlertDel](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/alertdel).","operationId":"deleteAlert","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"alert_tag":"Example","owner_id":"0"},"schema":{"properties":{"alert_tag":{"type":"string"},"owner_id":{"type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["alert_tag","owner_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/deleteAlert_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Delete alert","tags":["Alerts"]},"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listAlerts_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `AlertQueryRq`.\n\nIntuit's reference: [AlertQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/alertquery).","operationId":"listAlerts","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"in":"query","name":"owner_id","required":true,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listAlerts_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List alerts","tags":["Alerts"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createAlert_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `AlertAddRq`. The `alert_add` wrapper from qbXML is also accepted.\n\nIntuit's reference: [AlertAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/alertadd).","operationId":"createAlert","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"alert_tag":"Example","com_callback_info":{"app_name":"Example","prog_id":"Example"},"desc":"Blue widget, large","help_text":"Example","message_text":"Example","owner_id":"0"},"schema":{"oneOf":[{"properties":{"com_callback_info":{"oneOf":[{"properties":{"prog_id":{"type":"string"}},"required":["prog_id"],"title":"ProgID","type":"object"},{"properties":{"clsid":{"type":"string"}},"required":["clsid"],"title":"CLSID","type":"object"}],"properties":{"app_name":{"type":"string"}},"required":["app_name"],"type":"object"}},"required":["com_callback_info"],"title":"COMCallbackInfo","type":"object"},{"properties":{"http_callback_info":{"properties":{"url":{"type":"string"}},"required":["url"],"type":"object"}},"required":["http_callback_info"],"title":"HTTPCallbackInfo","type":"object"}],"properties":{"activation_date":{"format":"date","type":"string"},"alert_permission":{"properties":{"permission_level":{"items":{"enum":["AccountsPayable","AccountsReceivable","Banking","Finance","Inventory","TimeTracking"],"type":"string"},"type":"array"},"permission_needed":{"enum":["All","Any"],"type":"string"}},"required":["permission_level","permission_needed"],"type":"object"},"alert_tag":{"type":"string"},"desc":{"type":"string"},"expiration_date":{"format":"date","type":"string"},"help_text":{"type":"string"},"message_text":{"type":"string"},"owner_id":{"type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"ui_context":{"items":{"enum":["AlertsManager","CompanyNavigator"],"type":"string"},"type":"array"}},"required":["alert_tag","desc","help_text","message_text","owner_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createAlert_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create alert","tags":["Alerts"]}},"/connections/{connection_id}/item-groups":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listItemGroups_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemGroupQueryRq`.\n\nAn ItemGroupQuery request will return information about all the item groups that are set up in the QuickBooks file.\n\nIntuit's reference: [ItemGroupQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemgroupquery).","operationId":"listItemGroups","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `full_name` or `list_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["BarCodeValue","DataExtRet","EditSequence","ExternalGUID","IsActive","IsPrintItemsInGroup","ItemDesc","ItemGroupLine","ListID","Name","SpecialItemType","TimeCreated","TimeModified","UnitOfMeasureSetRef"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listItemGroups_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List item groups","tags":["Item Groups"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createItemGroup_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemGroupAddRq`. The `item_group_add` wrapper from qbXML is also accepted.\n\nAdds an item group. ItemGroup objects represent items that are grouped together for fast entry, and an ItemGroupRef aggregate refers to one of these item groups. In a request, if an ItemGroupRef aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.\n\nIntuit's reference: [ItemGroupAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemgroupadd).","operationId":"createItemGroup","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"Starter Kit"},"schema":{"properties":{"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["BarCodeValue","DataExtRet","EditSequence","ExternalGUID","IsActive","IsPrintItemsInGroup","ItemDesc","ItemGroupLine","ListID","Name","OwnerID","SpecialItemType","TimeCreated","TimeModified","TxnID","TxnNumber","UnitOfMeasureSetRef"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"item_group_line":{"items":{"properties":{"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createItemGroup_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create item group","tags":["Item Groups"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateItemGroup_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemGroupModRq`, from qbXML 3.0. The `item_group_mod` wrapper from qbXML is also accepted.\n\nModifies an item group.\n\nIntuit's reference: [ItemGroupMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemgroupmod).","operationId":"updateItemGroup","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Starter Kit"},"schema":{"not":{"anyOf":[{"required":["clear_items_in_group","item_group_line"]}]},"properties":{"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"clear_items_in_group":{"description":"Set to true to clear all the items in this group.\n\nChoose at most one of: `clear_items_in_group`, or `item_group_line`.","type":"boolean"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"force_uom_change":{"description":"By Default `force_uom_change` is false. However, in item Mod requests, you need to set the `force_uom_change` field to True if you are changing the UOM set and the base unit of the new set doesn’t match the base unit of the UOM set currently assigned to the item. This does the same thing as the user accepting the warning prompt in the UI.","type":"boolean"},"include_ret_element":{"items":{"enum":["BarCodeValue","DataExtRet","EditSequence","ExternalGUID","IsActive","IsPrintItemsInGroup","ItemDesc","ItemGroupLine","ListID","Name","OwnerID","SpecialItemType","TimeCreated","TimeModified","TxnID","TxnNumber","UnitOfMeasureSetRef"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_print_items_in_group":{"description":"If true, a list of this group’s individual items their amounts will appear on printed forms.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"item_group_line":{"description":"Choose at most one of: `clear_items_in_group`, or `item_group_line`.","items":{"properties":{"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"unit_of_measure_set_ref":{"description":"The unit of measure set consists of a base unit and 0-n related units.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateItemGroup_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update item group","tags":["Item Groups"]}},"/connections/{connection_id}/billing-rates":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listBillingRates_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `BillingRateQueryRq`, from qbXML 6.0.\n\nReturns all billing rates, or billing rates filtered by modified date, or filtered by billing rate name, or filtered by the service item referenced in the billing rate.\n\nIntuit's reference: [BillingRateQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/billingratequery).","operationId":"listBillingRates","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`from_modified_date`, `item_ref`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`from_modified_date`, `item_ref`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["BillingRatePerItemRet","BillingRateType","EditSequence","FixedBillingRate","ListID","Name","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`from_modified_date`, `item_ref`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"item_ref","required":false,"schema":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`from_modified_date`, `item_ref`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`from_modified_date`, `item_ref`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`from_modified_date`, `item_ref`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`from_modified_date`, `item_ref`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`from_modified_date`, `item_ref`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listBillingRates_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List billing rates","tags":["Billing Rates"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createBillingRate_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `BillingRateAddRq`, from qbXML 6.0. The `billing_rate_add` wrapper from qbXML is also accepted.\n\nAdds a billing rate to the billing rate level list. After a billing rate is created, it can be assigned to an employee or vendor (VendorAdd/Mod, EmployeeAdd/Mod) via the BillingRateRef element in the appropriate request. Then, once the billing rate is assigned to an employee or vendor, if you use that employee or vendor in a time transaction (TimeTrackingAdd), then the billing rate will override the rate specified by the service item used in the time transaction.\n\nUse `fixed_billing_rate` to override all service items with a fixed rate. Use `billing_rate_per_item` to override a specific service item. If you want to specify more than one service item, you’ll need to use one `billing_rate_per_item` aggregate for each service item.\n\nIntuit's reference: [BillingRateAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/billingrateadd).","operationId":"createBillingRate","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"fixed_billing_rate":250.0,"name":"Standard Rate"},"schema":{"oneOf":[{"properties":{"fixed_billing_rate":{"description":"You use `fixed_billing_rate` if you want the rate to override all service items rates. Consequently, there is no need to specify any service items (and in fact you can’t specify them) if you use this element.","type":"number"}},"required":["fixed_billing_rate"],"title":"FixedBillingRate","type":"object"},{"properties":{"billing_rate_per_item":{"items":{"not":{"anyOf":[{"required":["custom_rate","custom_rate_percent"]},{"required":["custom_rate","adjust_percentage"]},{"required":["custom_rate","adjust_billing_rate_relative_to"]},{"required":["custom_rate_percent","adjust_percentage"]},{"required":["custom_rate_percent","adjust_billing_rate_relative_to"]},{"properties":{"adjust_billing_rate_relative_to":false,"adjust_percentage":false,"custom_rate":false,"custom_rate_percent":false}}]},"properties":{"adjust_billing_rate_relative_to":{"description":"Specifies the service item rate that `adjust_percentage` is applied to. Normally, this is set to StandardRate.\n\nChoose exactly one of: the set (`custom_rate`, `custom_rate_percent`), or the set (`adjust_billing_rate_relative_to`, `adjust_percentage`). Members of a set combine with each other, not with the other choices.","enum":["CurrentCustomRate","StandardRate"],"type":"string"},"adjust_percentage":{"description":"If you don’t want to apply a custom price (for price levels) or custom rate (for billing rates), you can apply an adjusted price discount using the pair of fields `adjust_percentage` and AdjustRelativeTo (`adjust_billing_rate_relative_to` for billing rates).\n\nChoose exactly one of: the set (`custom_rate`, `custom_rate_percent`), or the set (`adjust_billing_rate_relative_to`, `adjust_percentage`). Members of a set combine with each other, not with the other choices.","type":"number"},"custom_rate":{"description":"The value specified here overrides the rate of the service item referenced in this aggregate (in the `item_ref`) with the rate you specify here. If instead you wanted a rate that is a percentage higher or lower than the service item rate, you wouldn’t use `custom_rate`, but you would use `adjust_percentage` and `adjust_billing_rate_relative_to`.\n\nChoose exactly one of: the set (`custom_rate`, `custom_rate_percent`), or the set (`adjust_billing_rate_relative_to`, `adjust_percentage`). Members of a set combine with each other, not with the other choices.","type":"number"},"custom_rate_percent":{"description":"Using this field with BillingRateAdd will work only if the service item itself is set to a percentage, not to an amount. If you attempt to set the Billing Rate to a percentage for a service item that has an amount for the Rate, you will get an error. The kind of rate you have on the service item determines the kind of billing rate you may have on that item.\n\nChoose exactly one of: the set (`custom_rate`, `custom_rate_percent`), or the set (`adjust_billing_rate_relative_to`, `adjust_percentage`). Members of a set combine with each other, not with the other choices.","type":"number"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["item_ref"],"type":"object"},"type":"array"}},"required":["billing_rate_per_item"],"title":"BillingRatePerItem","type":"object"}],"properties":{"include_ret_element":{"items":{"enum":["BillingRatePerItemRet","BillingRateType","EditSequence","ExternalGUID","FixedBillingRate","ListID","Name","OwnerID","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createBillingRate_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create billing rate","tags":["Billing Rates"]}},"/connections/{connection_id}/workflow-runs/{run_id}/events":{"get":{"description":"Everything that happened in a run you started, oldest first: states entered and left, requests queued and the responses that came back, every transition with the guards it considered, what was saved, questions and answers, webhooks, and how it ended. A workflow the run calls runs as part of it, so its events are in this one stream, right after the `call_started` event that began it: each entry's `seq` is its position (`7`, then `7.1`, `7.2`... for the called workflow, `7.3.1` a level deeper), `state` its path from your run and `workflow` whose chart it belongs to. A page never goes past the end of a called workflow that is still running, so the next page -- `after` the last `seq` you have -- always picks up its new events in order.","parameters":[{"description":"ID of the connection","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"ID of the workflow run","in":"path","name":"run_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Return the entries after this `seq` (the previous page's `next_after`, or the last `seq` you have when polling for more), including those inside a called workflow when it points inside one.","in":"query","name":"after","required":false,"schema":{"example":"7.3","type":"string"}},{"description":"How many entries per page (default 100), a called workflow's included.","in":"query","name":"limit","required":false,"schema":{"maximum":500,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/WorkflowRunEvent"},"type":"array"},"next_after":{"description":"Pass as `after` for the next page; null when there is nothing more to read yet.","nullable":true,"type":"string"}},"type":"object"}}},"description":"A page of the log"},"404":{"description":"No run you started with that id on that connection"}},"security":[{"apiKey":[]}],"summary":"A workflow run's event log","tags":["Workflows"]}},"/connections/{connection_id}/sales-receipts":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listSalesReceipts_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SalesReceiptQueryRq`.\n\nQueries for the specified sales receipt or set of receipts.\n\nIntuit's reference: [SalesReceiptQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/salesreceiptquery).","operationId":"listSalesReceipts","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["BillAddress","BillAddressBlock","CheckNumber","ClassRef","CreditCardTxnInfo","CurrencyRef","CustomerMsgRef","CustomerRef","CustomerSalesTaxCodeRef","DataExtRet","DepositToAccountRef","DiscountLineRet","DueDate","EditSequence","ExchangeRate","ExternalGUID","FOB","IsPending","IsTaxIncluded","IsToBeEmailed","IsToBePrinted","ItemSalesTaxRef","Memo","Other","PaymentMethodRef","RefNumber","SalesReceiptLineGroupRet","SalesReceiptLineRet","SalesRepRef","SalesTaxLineRet","SalesTaxPercentage","SalesTaxTotal","ShipAddress","ShipAddressBlock","ShipDate","ShipMethodRef","ShippingLineRet","Subtotal","TemplateRef","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listSalesReceipts_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List sales receipts","tags":["Sales Receipts"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createSalesReceipt_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SalesReceiptAddRq`. The `sales_receipt_add` wrapper from qbXML is also accepted.\n\nAdds a sales receipt: a sale paid in full when it was made, by cash, check or card. If the customer pays later, add an invoice instead and record the payment when it arrives. The money goes to `deposit_to_account_ref`. `customer_ref` is optional. Card details sent in `credit_card_txn_info` come back in the answer only if the app may see sensitive data.\n\nFor example, even if credit card data is supplied in the SalesReceiptAdd request via the `credit_card_txn_info` aggregate, the response won’t contain the corresponding aggregate.\n\nSales receipts are used to record point-of-sale payments. Sales receipts include payments by cash, check, or credit card. Note: If full payment isn’t received at the time of the sale, don’t use a sales receipt. Instead, use an invoice transaction and record the partial payment using a payment item.\n\n**Important:** In a SalesReceiptAdd or ReceivePaymentAdd request that contains credit card transaction data supplied from QBMS transaction responses, you must specify the payment method (using the `payment_method_ref` aggregate).\n\nSee also: [Inventory costing](https://docs.qubesync.com/quickbooks-notes#inventory-costing), [Line item taxes](https://docs.qubesync.com/quickbooks-notes#line-item-taxes).\n\nIntuit's reference: [SalesReceiptAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/salesreceiptadd).","operationId":"createSalesReceipt","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"bill_address":{"addr1":"123 Main St","city":"Springfield","postal_code":"62701","state":"IL"},"customer_ref":{"full_name":"Acme Corp"},"memo":"Monthly service","ref_number":"1001","sales_receipt_line_add":[{"desc":"Blue widget, large","item_ref":{"full_name":"Widget"},"quantity":2,"rate":125.0}],"txn_date":"2026-01-15"},"schema":{"not":{"anyOf":[{"properties":{"sales_receipt_line_add":{"maxItems":0},"sales_receipt_line_group_add":{"maxItems":0}}}]},"properties":{"discount_line_add":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"is_taxable":{"type":"boolean"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"sales_receipt_line_group_add":{"description":"Represents a previously defined group of lines in the sales receipt. Compare with SalesReceiptLine, which represents just one line in the sales receipt.\n\nAt least one entry is required across `sales_receipt_line_add` and `sales_receipt_line_group_add`; they combine, any number of each. QuickBooks receives them in that order: every `sales_receipt_line_add`, then every `sales_receipt_line_group_add`.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["item_group_ref"],"type":"object"},"type":"array"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"sales_receipt_line_add":{"description":"One line of the sales receipt. Compare with SalesReceiptLineGroup, which represents a previously defined group of lines in the sales receipt.\n\nAt least one entry is required across `sales_receipt_line_add` and `sales_receipt_line_group_add`; they combine, any number of each. QuickBooks receives them in that order: every `sales_receipt_line_add`, then every `sales_receipt_line_group_add`.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["rate","price_level_ref"]},{"required":["rate_percent","price_level_ref"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"required":["credit_card_number","expiration_month","expiration_year","name_on_card"],"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"required":["credit_card_trans_id","merchant_account_number","payment_status","result_code","result_message","txn_authorization_time"],"type":"object"}},"required":["credit_card_txn_input_info","credit_card_txn_result_info"],"type":"object"},"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"option_for_price_rule_conflict":{"description":"Flag to override price rule conflict.","enum":["BasePrice","Zero"],"type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"is_pending":{"description":"If `is_pending` is set to true, the sales receipt hasn’t been completed. Pending sales might include unpaid orders, estimates, tracked hours that haven’t yet been billed, or sales of back-ordered items.","type":"boolean"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"shipping_line_add":{"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"}},"required":["amount"],"type":"object"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"required":["credit_card_number","expiration_month","expiration_year","name_on_card"],"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"required":["credit_card_trans_id","merchant_account_number","payment_status","result_code","result_message","txn_authorization_time"],"type":"object"}},"required":["credit_card_txn_input_info","credit_card_txn_result_info"],"type":"object"},"check_number":{"description":"The check number of a check that a QuickBooks user writes or receives from someone else.","type":"string"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"A sales receipt doesn’t ordinarily include a due date, because sales receipts are generally used for point-of-sale payments, where full payment is received at the time of purchase.","format":"date","type":"string"},"sales_tax_line_add":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Message that appears in reports, but not on the sales receipt.","type":"string"},"txn_date":{"description":"The date of the sales receipt. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"},"include_ret_element":{"items":{"enum":["BillAddress","BillAddressBlock","CheckNumber","ClassRef","CreditCardTxnInfo","CurrencyRef","CustomerMsgRef","CustomerRef","CustomerSalesTaxCodeRef","DataExtRet","DepositToAccountRef","DiscountLineRet","DueDate","EditSequence","ExchangeRate","ExternalGUID","FOB","IsPending","IsTaxIncluded","IsToBeEmailed","IsToBePrinted","ItemSalesTaxRef","ListID","Memo","Other","OwnerID","PaymentMethodRef","RefNumber","SalesReceiptLineGroupRet","SalesReceiptLineRet","SalesRepRef","SalesTaxLineRet","SalesTaxPercentage","SalesTaxTotal","ShipAddress","ShipAddressBlock","ShipDate","ShipMethodRef","ShippingLineRet","Subtotal","TemplateRef","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createSalesReceipt_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create sales receipt","tags":["Sales Receipts"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateSalesReceipt_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SalesReceiptModRq`, from qbXML 5.0. The `sales_receipt_mod` wrapper from qbXML is also accepted.\n\nModifies an existing Sales receipt.\n\n**Important:** In a SalesReceiptMod request that contains credit card transaction data supplied from QBMS transaction responses, you can’t change the total amount recorded in the sale.\n\nIntuit's reference: [SalesReceiptMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/salesreceiptmod).","operationId":"updateSalesReceipt","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"bill_address":{"addr1":"123 Main St","city":"Springfield","postal_code":"62701","state":"IL"},"customer_ref":{"full_name":"Acme Corp"},"edit_sequence":"1700000000","memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","txn_id":"1A2B-1700000000"},"schema":{"properties":{"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"check_number":{"description":"The check number of a check that a QuickBooks user writes or receives from someone else.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"A sales receipt doesn’t ordinarily include a due date, because sales receipts are generally used for point-of-sale payments, where full payment is received at the time of purchase.","format":"date","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"include_ret_element":{"items":{"enum":["BillAddress","BillAddressBlock","CheckNumber","ClassRef","CreditCardTxnInfo","CurrencyRef","CustomerMsgRef","CustomerRef","CustomerSalesTaxCodeRef","DataExtRet","DepositToAccountRef","DiscountLineRet","DueDate","EditSequence","ExchangeRate","ExternalGUID","FOB","IsPending","IsTaxIncluded","IsToBeEmailed","IsToBePrinted","ItemSalesTaxRef","ListID","Memo","Other","OwnerID","PaymentMethodRef","RefNumber","SalesReceiptLineGroupRet","SalesReceiptLineRet","SalesRepRef","SalesTaxLineRet","SalesTaxPercentage","SalesTaxTotal","ShipAddress","ShipAddressBlock","ShipDate","ShipMethodRef","ShippingLineRet","Subtotal","TemplateRef","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_pending":{"description":"If `is_pending` is set to true, the sales receipt hasn’t been completed. Pending sales might include unpaid orders, estimates, tracked hours that haven’t yet been billed, or sales of back-ordered items.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Message that appears in reports, but not on the sales receipt.","type":"string"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_receipt_line_group_mod":{"description":"Represents a previously defined group of lines in the sales receipt. Compare with SalesReceiptLine, which represents just one line in the sales receipt.\n\n`sales_receipt_line_mod` and `sales_receipt_line_group_mod` combine: any number of each. QuickBooks receives them in that order: every `sales_receipt_line_mod`, then every `sales_receipt_line_group_mod`.","items":{"properties":{"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_receipt_line_mod":{"description":"One line of the sales receipt. Compare with SalesReceiptLineGroup, which represents a previously defined group of lines in the sales receipt.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["rate","price_level_ref"]},{"required":["rate_percent","price_level_ref"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"option_for_price_rule_conflict":{"description":"Flag to override price rule conflict.","enum":["BasePrice","Zero"],"type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"sales_receipt_line_mod":{"description":"One line of the sales receipt. Compare with SalesReceiptLineGroup, which represents a previously defined group of lines in the sales receipt.\n\n`sales_receipt_line_mod` and `sales_receipt_line_group_mod` combine: any number of each. QuickBooks receives them in that order: every `sales_receipt_line_mod`, then every `sales_receipt_line_group_mod`.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["rate","price_level_ref"]},{"required":["rate_percent","price_level_ref"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"option_for_price_rule_conflict":{"description":"Flag to override price rule conflict.","enum":["BasePrice","Zero"],"type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the sales receipt. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateSalesReceipt_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update sales receipt","tags":["Sales Receipts"]}},"/connections/{connection_id}/ar-refund-credit-cards":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listArRefundCreditCards_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ARRefundCreditCardQueryRq`, from qbXML 5.0.\n\nRetrieves the specified credit card refund transaction or transactions.\n\nIntuit's reference: [ARRefundCreditCardQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/arrefundcreditcardquery).","operationId":"listArRefundCreditCards","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["ARAccountRef","Address","AddressBlock","CreditCardTxnInfo","CurrencyRef","CustomerRef","DataExtRet","EditSequence","ExchangeRate","ExternalGUID","Memo","PaymentMethodRef","RefNumber","RefundAppliedToTxnRet","RefundFromAccountRef","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listArRefundCreditCards_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List ar refund credit cards","tags":["Ar Refund Credit Cards"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createArRefundCreditCard_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ARRefundCreditCardAddRq`, from qbXML 5.0. The `ar_refund_credit_card_add` wrapper from qbXML is also accepted.\n\nAdds a credit card refund transaction that is linked to one or more QuickBooks credit memo transactions. You can link the credit card refund to one or more of those credit transactions.\n\nNotice that this provides functionality over and above what the UI provides, which currently allows a user to link only one credit card refund to one credit transaction.\n\nIntuit's reference: [ARRefundCreditCardAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/arrefundcreditcardadd).","operationId":"createArRefundCreditCard","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"customer_ref":{"full_name":"Acme Corp"},"memo":"Monthly service","ref_number":"1001","refund_applied_to_txn_add":[{"refund_amount":250.0,"txn_id":"1A2B-1700000000"}],"txn_date":"2026-01-15"},"schema":{"properties":{"address":{"description":"If an address request fails, some combination of address fields might be too long. In a Check, BillPaymentCheck, or SalesTaxPaymentCheck message, Address is the address that will print on the check.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"required":["credit_card_number","expiration_month","expiration_year","name_on_card"],"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"required":["credit_card_trans_id","merchant_account_number","payment_status","result_code","result_message","txn_authorization_time"],"type":"object"}},"required":["credit_card_txn_input_info","credit_card_txn_result_info"],"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or TxnLineID so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["ARAccountRef","Address","AddressBlock","CreditCardTxnInfo","CurrencyRef","CustomerRef","DataExtRet","EditSequence","ExchangeRate","ExternalGUID","ListID","Memo","OwnerID","PaymentMethodRef","RefNumber","RefundAppliedToTxnRet","RefundFromAccountRef","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"memo":{"description":"Additional information.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"refund_applied_to_txn_add":{"items":{"properties":{"refund_amount":{"description":"Specifies the amount to be taken from the credit transaction you are linking via this aggregate. The amount specified in this aggregate can’t exceed the amount of the credit transaction you are linking. If you supply an amount that exceeds, you’ll get a runtime error.","type":"number"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["refund_amount","txn_id"],"type":"object"},"type":"array"},"refund_from_account_ref":{"description":"In an ARRefundCreditCardAdd, the account which is the source of funds for the credit card refund. Normally this is Undeposited Funds. However, you can specify another account if you wish. If you specify nothing here, Undeposited Funds is used by default.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"}},"required":["customer_ref","refund_applied_to_txn_add"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createArRefundCreditCard_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create ar refund credit card","tags":["Ar Refund Credit Cards"]}},"/connections/{connection_id}/payroll-liability-checks":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listPayrollLiabilityChecks_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollLiabilityCheckQueryRq`.\n\nIntuit's reference: [PayrollLiabilityCheckQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollliabilitycheckquery).","operationId":"listPayrollLiabilityChecks","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AccountRef","Address","Amount","EditSequence","IsToBePrinted","Memo","PayrollDate","PayrollLiabilityCheckLineRet","RefNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber","VendorRef"],"type":"string"},"type":"array"}},{"description":"QuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"format":"date-time","type":"string"},"to_modified_date":{"format":"date-time","type":"string"}},"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"payroll_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_payroll_date":false,"to_payroll_date":false}},"properties":{"from_payroll_date":{"format":"date","type":"string"},"to_payroll_date":{"format":"date","type":"string"}},"title":"FromPayrollDate + ToPayrollDate","type":"object"},{"properties":{"date_macro":{"enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"type":"string"},"to_ref_number":{"type":"string"}},"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"format":"date","type":"string"},"to_txn_date":{"format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listPayrollLiabilityChecks_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List payroll liability checks","tags":["Payroll Liability Checks"]}},"/connections/{connection_id}/item-other-charges":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listItemOtherCharges_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemOtherChargeQueryRq`.\n\nQueries for the specified other charge item or set of items.\n\nIntuit's reference: [ItemOtherChargeQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemotherchargequery).","operationId":"listItemOtherCharges","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `full_name` or `list_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters according to the object’s class.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["BarCodeValue","ClassRef","DataExtRet","EditSequence","ExternalGUID","FullName","IsActive","IsTaxIncluded","ListID","Name","ParentRef","SalesAndPurchase","SalesOrPurchase","SalesTaxCodeRef","SpecialItemType","Sublevel","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listItemOtherCharges_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List item other charges","tags":["Item Other Charges"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createItemOtherCharge_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemOtherChargeAddRq`. The `item_other_charge_add` wrapper from qbXML is also accepted.\n\nAdds an other charge item: a charge that isn't a service or a product, such as delivery, setup fees or service charges. Send `sales_or_purchase` for a charge the business only sells or only buys, or `sales_and_purchase` for one it does both with.\n\nIntuit's reference: [ItemOtherChargeAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemotherchargeadd).","operationId":"createItemOtherCharge","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"Shipping","sales_or_purchase":{"account_ref":{"full_name":"Sales"}}},"schema":{"oneOf":[{"properties":{"sales_or_purchase":{"description":"A `sales_or_purchase` aggregate is used for items that are meant to be either purchased or sold, but not both. For example, a `sales_or_purchase` aggregate would be used for a non-inventory item that is purchased but not sold, or for a service item that is sold but not purchased.","not":{"anyOf":[{"required":["price","price_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"price":{"description":"The purchase price or sales price of this item.\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"},"price_percent":{"description":"The price expressed as a percent. (For example, an auto shop that calculates the cost of labor as a percentage of the cost of parts might have a service item called “Labor” that uses `price_percent` instead of Price.)\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"}},"type":"object"}},"required":["sales_or_purchase"],"title":"SalesOrPurchase","type":"object"},{"properties":{"sales_and_purchase":{"description":"A `sales_and_purchase` aggregate is used for items that are meant to be both purchased and sold, such as an “other charge” item that is reimbursable.","properties":{"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"}},"required":["sales_and_purchase"],"title":"SalesAndPurchase","type":"object"}],"properties":{"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["BarCodeValue","ClassRef","DataExtRet","EditSequence","ExternalGUID","FullName","IsActive","IsTaxIncluded","ListID","Name","OwnerID","ParentRef","SalesAndPurchase","SalesOrPurchase","SalesTaxCodeRef","SpecialItemType","Sublevel","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createItemOtherCharge_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create item other charge","tags":["Item Other Charges"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateItemOtherCharge_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemOtherChargeModRq`, from qbXML 3.0. The `item_other_charge_mod` wrapper from qbXML is also accepted.\n\nAbout `sales_or_purchase_mod` versus `sales_and_purchase_mod` in an ItemOtherChargeMod request:\n\nYou can’t change the reimbursable status of an other-charge item through the SDK. For example, if an other-charge item is marked as non-reimbursable in QuickBooks, you can’t send a modify request that includes a `sales_and_purchase_mod` aggregate. Similarly, if you send an ItemOtherChargeAdd request that includes a `sales_or_purchase` aggregate, you can’t later modify that item using a `sales_and_purchase_mod` aggregate.\n\nStarting with qbXML spec 7.0, you can modify the various account references using the appropriate account reference aggregate and the matching Apply Account RefToExistingTxns boolean. You need to use the boolean when you change an account ref because the QuickBooks UI displays a prompt asking whether the change should apply to existing transactions or not. Specifying True for the boolean basically dismisses this with a “Yes” answer, allowing your changes to be made and changes any existing transactions that use the item with that `account_ref`. Specifying “False” means that the mod won’t take affect if there are existing transactions.\n\nSetting this to “True” should be used with caution and normally only after some user has indicated that they want those changes made to all those existing transactions!\n\nIf any affected transactions are protected by a closing date and password, the `account_ref` changes won’t be made and so the Mod request will return an error without making the requested Mod.\n\nIntuit's reference: [ItemOtherChargeMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemotherchargemod).","operationId":"updateItemOtherCharge","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Shipping"},"schema":{"not":{"anyOf":[{"required":["sales_or_purchase_mod","sales_and_purchase_mod"]}]},"properties":{"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"include_ret_element":{"items":{"enum":["BarCodeValue","ClassRef","DataExtRet","EditSequence","ExternalGUID","FullName","IsActive","IsTaxIncluded","ListID","Name","OwnerID","ParentRef","SalesAndPurchase","SalesOrPurchase","SalesTaxCodeRef","SpecialItemType","Sublevel","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_and_purchase_mod":{"description":"A `sales_and_purchase` aggregate is used for items that are meant to be both purchased and sold, such as an “other charge” item that is reimbursable.\n\nChoose at most one of: `sales_or_purchase_mod`, or `sales_and_purchase_mod`.","properties":{"apply_expense_account_ref_to_existing_txns":{"description":"Used to support changing the `account_ref` in the Mod request. When you do this, the QuickBooks UI normally displays a prompt asking whether the change should apply to existing transactions or not. Specifying False basically dismisses this with a “No” answer; specifying True dismisses it with a “Yes” answer and then changes the existing transactions that use the item with that `account_ref`.","type":"boolean"},"apply_income_account_ref_to_existing_txns":{"description":"Used to support changing the `account_ref` in the Mod request. When you do this, the QuickBooks UI normally displays a prompt asking whether the change should apply to existing transactions or not. Specifying False basically dismisses this with a “No” answer; specifying True dismisses it with a “Yes” answer and then changes the existing transactions that use the item with that `account_ref`.","type":"boolean"},"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"income_account_ref":{"description":"Refers to an income account. If an `income_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"pref_vendor_ref":{"description":"The preferred vendor for this item. If a `pref_vendor_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"purchase_tax_code_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"sales_or_purchase_mod":{"description":"A `sales_or_purchase` aggregate is used for items that are meant to be either purchased or sold, but not both. For example, a `sales_or_purchase` aggregate would be used for a non-inventory item that is purchased but not sold, or for a service item that is sold but not purchased.\n\nChoose at most one of: `sales_or_purchase_mod`, or `sales_and_purchase_mod`.","not":{"anyOf":[{"required":["price","price_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"apply_account_ref_to_existing_txns":{"description":"Used to support changing the `account_ref` in the Mod request. When you do this, the QuickBooks UI normally displays a prompt asking whether the change should apply to existing transactions or not. Specifying False basically dismisses this with a “No” answer; specifying True dismisses it with a “Yes” answer and then changes the existing transactions that use the item with that `account_ref`.","type":"boolean"},"desc":{"description":"A descriptive text field.","type":"string"},"price":{"description":"The purchase price or sales price of this item.\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"},"price_percent":{"description":"The price expressed as a percent. (For example, an auto shop that calculates the cost of labor as a percentage of the cost of parts might have a service item called “Labor” that uses `price_percent` instead of Price.)\n\nChoose at most one of: `price`, or `price_percent`.","type":"number"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateItemOtherCharge_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update item other charge","tags":["Item Other Charges"]}},"/workflow-templates/{key}/usage":{"get":{"description":"The template's usage contract: how to start it, every question it may ask (including those of the templates it calls), and every way it can end. The same shape `GET /workflows/{key}/usage` answers for an installed workflow, built from the template's chart and the charts of the templates it calls, as if `POST /workflow-templates/{key}/install` had installed them together, so you can read what it asks and how it ends before installing anything. `workflow.state` is `template`. It reads nothing of your app: once you've installed or adapted it, `GET /workflows/{key}/usage` describes the workflow your app actually runs.","parameters":[{"description":"The template's key (see GET /workflow-templates)","in":"path","name":"key","required":true,"schema":{"pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WorkflowUsage"}},"type":"object"}}},"description":"The usage contract"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No template with that key"}},"security":[{"apiKey":[]}],"summary":"How to use a workflow template, before it's installed","tags":["Workflows"]}},"/connections/{connection_id}/queued-requests/{id}/pages":{"get":{"description":"Given any one page's id (not just the first), the pages of the same iteration answered so far, oldest first, `page_size` at a time -- lets a caller polling alone (no webhook) reconstruct a multi-page qbXML response and see, via each page's own `iteration_state`, whether it is complete. Each page carries its whole `response_xml`, so keep `page_size` small for a large query; `meta.total_pages` says how many pages of them there are.","operationId":"listQueuedRequestPages","parameters":[{"description":"The connection to act on.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"The queued request.","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Which page of the list, from 1.","in":"query","name":"page","schema":{"default":1,"minimum":1,"type":"integer"}},{"description":"How many to a page, at most 100.","in":"query","name":"page_size","schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/QueuedRequest"},"type":"array"},"meta":{"properties":{"page":{"type":"integer"},"total_pages":{"type":"integer"}},"required":["page","total_pages"],"type":"object"}},"required":["data","meta"],"type":"object"}}},"description":"A page of the iteration's pages"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrors"}}},"description":"`page` or `page_size` out of range: `errors` names it."}},"security":[{"apiKey":[]}],"summary":"List the pages of a multi-page (iterated) response","tags":["Queued Requests"]}},"/connections/{connection_id}/general-detail-reports":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listGeneralDetailReports_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `GeneralDetailReportQueryRq`, from qbXML 2.0.\n\nYou use this report query to get any of the supported QuickBooks detail reports, which you specify in the `general_detail_report_type`. You can optionally display the report within QB by setting `display_report` to True.\n\nYou can also use this detail report to get information not obtainable from various SDK queries. For example, suppose you wanted the cleared status from a BillPaymentCheck; the BillPaymentCheckQuery wouldn’t have this info, but you could use this general detail report and specify the column ClearedStatus to find that information.\n\nAlso, if you wanted to query the accounts receivable directly, you could do a General Detail Report Query with the report type set to Open Invoices.\n\nYou could also use this report if you needed to run a report on all invoice changes made in a specific day, and only include changes to invoices from a given past month, if the audit trail is on in QuickBooks. You would use a GeneralDetailReport query with the report type set to AuditTrail.\n\nNotice that if a line is paid, PaidStatus == “X”. If a line isn’t paid, no entry for PaidStatus is returned.\n\nHowever, in the same report run within the QB GUI, the following behavior is observed: This differs from the UI, where if the line is paid, an entry of “Paid” is displayed and if the line isn’t paid, an entry of “Unpaid” is displayed.\n\nIntuit's reference: [GeneralDetailReportQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/generaldetailreportquery).","operationId":"listGeneralDetailReports","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Set `display_report` to true to display this report within the QuickBooks UI. (Default is false.) If you want the request to display the report without returning any data to your application, set the responseData attribute to includeNone.","in":"query","name":"display_report","required":false,"schema":{"type":"boolean"}},{"description":"The type of general detail report to return. (If you specify gdrtMissingChecks, you must also specify an account type in the account filter.)","in":"query","name":"general_detail_report_type","required":true,"schema":{"enum":["1099Detail","AuditTrail","BalanceSheetDetail","CheckDetail","CustomerBalanceDetail","DepositDetail","EstimatesByJob","ExpenseByVendorDetail","GeneralLedger","IncomeByCustomerDetail","IncomeTaxDetail","InventoryValuationDetail","JobProgressInvoicesVsEstimates","Journal","MissingChecks","OpenInvoices","OpenPOs","OpenPOsByJob","OpenSalesOrderByCustomer","OpenSalesOrderByItem","PendingSales","ProfitAndLossDetail","PurchaseByItemDetail","PurchaseByVendorDetail","SalesByCustomerDetail","SalesByItemDetail","SalesByRepDetail","TxnDetailByAccount","TxnListByCustomer","TxnListByDate","TxnListByVendor","UnbilledCostsByJob","UnpaidBillsDetail","VendorBalanceDetail"],"type":"string"}},{"description":"Indicates whether this report should include all accounts or just those that are currently in use.","in":"query","name":"include_accounts","required":false,"schema":{"enum":["All","InUse"],"type":"string"}},{"in":"query","name":"include_column","required":false,"schema":{"items":{"enum":["Account","Aging","Amount","AmountDifference","AverageCost","BilledDate","BillingStatus","CalculatedAmount","Class","ClearedStatus","CostPrice","Credit","Currency","Date","Debit","DeliveryDate","DueDate","EstimateActive","ExchangeRate","FOB","IncomeSubjectToTax","Invoiced","Item","ItemDesc","LastModifiedBy","LatestOrPriorState","Memo","ModifiedTime","Name","NameAccountNumber","NameAddress","NameCity","NameContact","NameEmail","NameFax","NamePhone","NameState","NameZip","OpenBalance","OriginalAmount","PONumber","PaidAmount","PaidStatus","PaidThroughDate","PaymentMethod","PayrollItem","PrintStatus","ProgressAmount","ProgressPercent","Quantity","QuantityAvailable","QuantityOnHand","QuantityOnSalesOrder","ReceivedQuantity","RefNumber","RunningBalance","SSNOrTaxID","SalesRep","SalesTaxCode","SerialOrLotNumber","ShipDate","ShipMethod","SourceName","SplitAccount","TaxLine","TaxTableVersion","Terms","TxnID","TxnNumber","TxnType","UnitPrice","UserEdit","ValueOnHand","WageBase","WageBaseTips"],"type":"string"},"type":"array"}},{"description":"Allows you to query for a specified account type or for specific list elements.","in":"query","name":"report_account_filter","required":false,"schema":{"oneOf":[{"properties":{"account_type_filter":{"description":"Allows you to report on a specific account type.","enum":["APAndSalesTax","APOrCreditCard","ARAndAP","AccountsPayable","AccountsReceivable","AllowedFor1099","Asset","BalanceSheet","Bank","BankAndARAndAPAndUF","BankAndUF","CostOfSales","CreditCard","CurrentAsset","CurrentAssetAndExpense","CurrentLiability","Equity","EquityAndIncomeAndExpense","ExpenseAndOtherExpense","FixedAsset","IncomeAndExpense","IncomeAndOtherIncome","Liability","LiabilityAndEquity","LongTermLiability","NonPosting","OrdinaryExpense","OrdinaryIncome","OrdinaryIncomeAndCOGS","OrdinaryIncomeAndExpense","OtherAsset","OtherCurrentAsset","OtherCurrentLiability","OtherExpense","OtherIncome","OtherIncomeOrExpense"],"type":"string"}},"required":["account_type_filter"],"title":"AccountTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"If `report_basis` is rbCash, the report bases income and expenses on the dates when money changed hands.rbAccrual, the report bases income on the dates when customers were invoiced and bases expenses on the dates when bills were entered.rbNone, the report uses the default `report_basis`, which is either the QuickBooks Preference setting or the QuickBooks default for a given type of report.","in":"query","name":"report_basis","required":false,"schema":{"enum":["Accrual","Cash","None"],"type":"string"}},{"description":"Allows you to query for a specified class. Classes can be used to separate transactions into meaningful categories. (For example, transactions could be classified according to department, business location, or type of work.) In QuickBooks, class tracking is off by default.","in":"query","name":"report_class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"The time period covered by this report.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_date_macro","required":false,"schema":{"enum":["All","LastMonth","LastMonthToDate","LastQuarter","LastQuarterToDate","LastWeek","LastWeekToDate","LastYear","LastYearToDate","NextFourWeeks","NextMonth","NextQuarter","NextWeek","NextYear","ThisMonth","ThisMonthToDate","ThisQuarter","ThisQuarterToDate","ThisWeek","ThisWeekToDate","ThisYear","ThisYearToDate","Today","Yesterday"],"type":"string"}},{"description":"The level of detail to include in the report.","in":"query","name":"report_detail_level_filter","required":false,"schema":{"enum":["All","AllExceptSummary","SummaryOnly"],"type":"string"}},{"description":"Allows you to query for a specified name type (customer, employee, vendor, or other) or query for specific list elements.","in":"query","name":"report_entity_filter","required":false,"schema":{"oneOf":[{"properties":{"entity_type_filter":{"description":"Allows you to report on a specific name type.","enum":["Customer","Employee","OtherName","Vendor"],"type":"string"}},"required":["entity_type_filter"],"title":"EntityTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Allows you to query for a specified item type (for example, discount, inventory, or non-inventory) or query for specific list elements.","in":"query","name":"report_item_filter","required":false,"schema":{"oneOf":[{"properties":{"item_type_filter":{"description":"Allows you to report on a specific item type.","enum":["AllExceptFixedAsset","Assembly","Discount","FixedAsset","Inventory","InventoryAndAssembly","NonInventory","OtherCharge","Payment","Sales","SalesTax","Service"],"type":"string"}},"required":["item_type_filter"],"title":"ItemTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Returns reports that were modified between these two dates (inclusive). The range of acceptable dates for both `from_report_modified_date` and `to_report_modified_date` is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).\n\nChoose at most one of: `report_modified_date_range_filter`, or `report_modified_date_range_macro`.","in":"query","name":"report_modified_date_range_filter","required":false,"schema":{"properties":{"from_report_modified_date":{"description":"Selects information from this date and later. The range of acceptable dates is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).","format":"date","type":"string"},"to_report_modified_date":{"description":"Selects information created on this date or earlier. The range of acceptable dates is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).","format":"date","type":"string"}},"type":"object"}},{"description":"The time period covered by this report.\n\nChoose at most one of: `report_modified_date_range_filter`, or `report_modified_date_range_macro`.","in":"query","name":"report_modified_date_range_macro","required":false,"schema":{"enum":["All","LastMonth","LastMonthToDate","LastQuarter","LastQuarterToDate","LastWeek","LastWeekToDate","LastYear","LastYearToDate","NextFourWeeks","NextMonth","NextQuarter","NextWeek","NextYear","ThisMonth","ThisMonthToDate","ThisQuarter","ThisQuarterToDate","ThisWeek","ThisWeekToDate","ThisYear","ThisYearToDate","Today","Yesterday"],"type":"string"}},{"description":"The report will return open balance information up to the `report_open_balance_as_of` date.","in":"query","name":"report_open_balance_as_of","required":false,"schema":{"enum":["ReportEndDate","Today"],"type":"string"}},{"description":"If you omit both `to_report_date` and `from_report_date`, the report will cover the current fiscal year to date.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_period","required":false,"schema":{"properties":{"from_report_date":{"description":"Selects information from this date and later. The range of acceptable `from_report_date` and `to_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"},"to_report_date":{"description":"Selects information created on this date or earlier. The range of acceptable `to_report_date` and `from_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"}},"type":"object"}},{"description":"Allows you to query for posting reports, non-posting reports, or reports that are either one.","in":"query","name":"report_posting_status_filter","required":false,"schema":{"enum":["Either","NonPosting","Posting"],"type":"string"}},{"description":"Allows you to report on specific transaction types (for example, charge, check, deposit, or estimate).","in":"query","name":"report_txn_type_filter","required":false,"schema":{"properties":{"txn_type_filter":{"items":{"enum":["ARRefundCreditCard","All","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"},"type":"array"}},"required":["txn_type_filter"],"type":"object"}},{"description":"`summarize_rows_by` (along with IncludeColumnList, in most cases) determines what data is calculated for this report and controls how the rows are organized and labeled. For example, if you set the value to srbAccount, the report’s row labels might be “Checking,” “Savings,” and so on.","in":"query","name":"summarize_rows_by","required":false,"schema":{"enum":["Account","BalanceSheet","Class","Customer","CustomerType","Day","Employee","FourWeek","HalfMonth","IncomeStatement","ItemDetail","ItemType","Month","Payee","PaymentMethod","PayrollItemDetail","PayrollYtdDetail","Quarter","SalesRep","SalesTaxCode","ShipMethod","TaxLine","Terms","TotalOnly","TwoWeek","Vendor","VendorType","Week","Year"],"type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listGeneralDetailReports_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List general detail reports","tags":["General Detail Reports"]}},"/connections/{connection_id}/company-activities":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listCompanyActivities_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CompanyActivityQueryRq`, from qbXML 2.0.\n\nA CompanyActivityQueryRq request message returns `last_restore_time` (the time when the company file was last restored from a back up), and `last_condense_time` (the time the company file was last condensed). It returns the default date of 1970-01-01 (UTC) for these elements if a restore or condense hasn’t happened for this company file. (For example, 1970-01-01 will be represented as 1969-12-31T16:00:00-08:00 in a time zone that is eight hours behind UTC.)\n\nNote: If you include an explicit end tag in a CompanyActivityQuery request, you will receive an error if there is any space between the opening tag and the end tag. The following table shows valid and invalid ways of constructing this request:\n\n- Valid (no space between opening and closing tags)\n- Valid (combined opening and closing tag)\n- Invalid (space between opening and closing tags)\n\nIntuit's reference: [CompanyActivityQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/companyactivityquery).","operationId":"listCompanyActivities","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["LastCondenseTime","LastRestoreTime"],"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listCompanyActivities_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List company activities","tags":["Company Activities"]}},"/workflows":{"get":{"description":"Every workflow belonging to the authenticated app. `template.status` on each says when the shipped template it was installed from has changed since.","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/WorkflowSummary"},"type":"array"}},"type":"object"}}},"description":"A list of workflows"}},"security":[{"apiKey":[]}],"summary":"List workflows","tags":["Workflows"]}},"/connections/{connection_id}/workflow-runs/{run_id}/redeliver":{"post":{"description":"Sends the run's latest webhook event again, to recover from an endpoint that was down for longer than the retry window (about 8 hours) or an event your app dropped. The event is the one for the run's state now: `workflow_run.completed`, `workflow_run.failed` or `workflow_run.cancelled` for a run that has ended, `workflow_run.awaiting_input` (with the question it is asking now) for one waiting on an answer. Never an older question: a resent `awaiting_input` whose question is answered before it goes out is not sent, as with any delivery.\n\nIt is the ordinary webhook: the same body and `revision` a delivery of that state carries, signed with your app's current secret, sent to the run's current `webhook_url` (never any other URL), and retried on the same schedule. So your revision rule holds: a receiver that already has that revision skips it. A failed resend sends the organization's owners no email. A run's `workflow_run.notification` events are not resent.\n\nAt most one resend per run a minute, and 60 per app a minute: over either, `429` with `Retry-After`. A resend while an earlier one for the same run is waiting to retry brings that retry forward rather than queueing another.","parameters":[{"description":"ID of the connection","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"ID of the workflow run","in":"path","name":"run_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"202":{"content":{"application/json":{"schema":{"example":{"data":{"event":"workflow_run.completed","revision":7,"run_id":"8d3c1f9e-2b7a-4c55-9a0e-6f1d2c3b4a59","webhook_url":"https://example.com/webhooks/qube"}},"properties":{"data":{"properties":{"event":{"description":"The event queued: the one for the run's state now.","enum":["workflow_run.awaiting_input","workflow_run.completed","workflow_run.failed","workflow_run.cancelled"],"type":"string"},"revision":{"description":"The run's `revision` now, which the webhook carries.","type":"integer"},"run_id":{"description":"The run.","format":"uuid","type":"string"},"webhook_url":{"description":"Where it goes: the run's `webhook_url`.","format":"uri","type":"string"}},"required":["run_id","event","revision","webhook_url"],"type":"object"}},"type":"object"}}},"description":"The event is queued for delivery"},"404":{"description":"No run with that id on that connection"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"`nothing_to_redeliver`: the run has no event to send yet (it is still running and hasn't asked a question), or it has no `webhook_url`."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"`rate_limited`: one resend per run a minute, 60 per app a minute. `Retry-After` says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds until you may resend.","schema":{"type":"integer"}}}}},"security":[{"apiKey":[]}],"summary":"Resend a run's latest event","tags":["Workflows"]}},"/connections/{connection_id}/inventory-adjustments":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listInventoryAdjustments_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `InventoryAdjustmentQueryRq`, from qbXML 2.0.\n\nYou can’t query an inventory adjustment while the inventory adjustment form is open in the QuickBooks user interface.\n\nIntuit's reference: [InventoryAdjustmentQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/inventoryadjustmentquery).","operationId":"listInventoryAdjustments","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AccountRef","ClassRef","CustomerRef","DataExtRet","EditSequence","ExternalGUID","InventoryAdjustmentLineRet","InventorySiteRef","Memo","RefNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"Filters according to the item name or ID. You can use an ItemQuery request to get information about all the items that are set up in the QuickBooks file. “Items” are line items used for fast entry on sales and purchase forms. They include services and goods that a business buys and sells, as well as special items that perform calculations–for example, subtotal, discount, and sales-tax items.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"item_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listInventoryAdjustments_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List inventory adjustments","tags":["Inventory Adjustments"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createInventoryAdjustment_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `InventoryAdjustmentAddRq`, from qbXML 2.0. The `inventory_adjustment_add` wrapper from qbXML is also accepted.\n\nIf the following conditions aren’t met, you will receive an error if you try to add an inventory adjustment through the SDK:\n\n- The QuickBooks company file must be open in single-user mode, unless you are using QuickBooks Enterprise edition, which allows multi-user mode for this request. (This is also true in the user interface: you can’t adjust the inventory while the company file is open in multi-user mode, again except for Enterprise.)\n- The inventory adjustment form must be closed in the QuickBooks user interface.\n\nIntuit's reference: [InventoryAdjustmentAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/inventoryadjustmentadd).","operationId":"createInventoryAdjustment","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"account_ref":{"full_name":"Inventory Adjustments"},"customer_ref":{"full_name":"Acme Corp"},"inventory_adjustment_line_add":[{"item_ref":{"full_name":"Widget"},"quantity_adjustment":{"new_quantity":2}}],"memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15"},"schema":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["AccountRef","ClassRef","CustomerRef","DataExtRet","EditSequence","ExternalGUID","InventoryAdjustmentLineRet","InventorySiteRef","ListID","Memo","OwnerID","RefNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"inventory_adjustment_line_add":{"items":{"not":{"anyOf":[{"required":["quantity_adjustment","value_adjustment"]},{"required":["quantity_adjustment","serial_number_adjustment"]},{"required":["quantity_adjustment","lot_number_adjustment"]},{"required":["value_adjustment","serial_number_adjustment"]},{"required":["value_adjustment","lot_number_adjustment"]},{"required":["serial_number_adjustment","lot_number_adjustment"]},{"properties":{"lot_number_adjustment":false,"quantity_adjustment":false,"serial_number_adjustment":false,"value_adjustment":false}}]},"properties":{"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number_adjustment":{"description":"Amount to adjust lot number.\n\nChoose exactly one of: `quantity_adjustment`, or `value_adjustment`, or `serial_number_adjustment`, or `lot_number_adjustment`.","properties":{"count_adjustment":{"description":"Amount to adjust count.","type":"integer"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.","type":"string"}},"type":"object"},"quantity_adjustment":{"description":"Adjusts the inventory quantity either by setting a new quantity or by adjusting the current quantity up or down.\n\nChoose exactly one of: `quantity_adjustment`, or `value_adjustment`, or `serial_number_adjustment`, or `lot_number_adjustment`.","not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"oneOf":[{"properties":{"new_quantity":{"description":"The new quantity for this inventory item.","type":"number"}},"required":["new_quantity"],"title":"NewQuantity","type":"object"},{"properties":{"quantity_difference":{"description":"Either a positive or negative number that shows the change in quantity for this inventory item.","type":"number"}},"required":["quantity_difference"],"title":"QuantityDifference","type":"object"}],"properties":{"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"}},"type":"object"},"serial_number_adjustment":{"description":"Serial number that will be adjusted in inventory.\n\nChoose exactly one of: `quantity_adjustment`, or `value_adjustment`, or `serial_number_adjustment`, or `lot_number_adjustment`.","oneOf":[{"properties":{"add_serial_number":{"description":"Serial number that will be added to inventory.","type":"string"}},"required":["add_serial_number"],"title":"AddSerialNumber","type":"object"},{"properties":{"remove_serial_number":{"description":"Serial number that will be removed from inventory.","type":"string"}},"required":["remove_serial_number"],"title":"RemoveSerialNumber","type":"object"}],"properties":{"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"},"value_adjustment":{"description":"Adjusts the total value of these inventory items by setting a new monetary value, and optionally by setting a new quantity.\n\nChoose exactly one of: `quantity_adjustment`, or `value_adjustment`, or `serial_number_adjustment`, or `lot_number_adjustment`.","oneOf":[{"properties":{"new_quantity":{"description":"The new quantity for this inventory item.","type":"number"}},"required":["new_quantity"],"title":"NewQuantity","type":"object"},{"properties":{"quantity_difference":{"description":"Either a positive or negative number that shows the change in quantity for this inventory item.","type":"number"}},"required":["quantity_difference"],"title":"QuantityDifference","type":"object"}],"type":"object"}},"required":["item_ref"],"type":"object"},"type":"array"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"}},"required":["account_ref","inventory_adjustment_line_add"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createInventoryAdjustment_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create inventory adjustment","tags":["Inventory Adjustments"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateInventoryAdjustment_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `InventoryAdjustmentModRq`, from qbXML 9.0. The `inventory_adjustment_mod` wrapper from qbXML is also accepted.\n\nIntuit's reference: [InventoryAdjustmentMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/inventoryadjustmentmod).","operationId":"updateInventoryAdjustment","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"customer_ref":{"full_name":"Acme Corp"},"edit_sequence":"1700000000","memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","txn_id":"1A2B-1700000000"},"schema":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"include_ret_element":{"items":{"enum":["AccountRef","ClassRef","CustomerRef","DataExtRet","EditSequence","ExternalGUID","InventoryAdjustmentLineRet","InventorySiteRef","ListID","Memo","OwnerID","RefNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"inventory_adjustment_line_mod":{"items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]},{"required":["serial_number","count_adjustment"]},{"properties":{"count_adjustment":false,"lot_number":false,"serial_number":false}}]},"properties":{"count_adjustment":{"description":"Amount to adjust count.\n\nChoose exactly one of: `serial_number`, or the set (`count_adjustment`, `lot_number`). Members of a set combine with each other, not with the other choices.","type":"integer"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose exactly one of: `serial_number`, or the set (`count_adjustment`, `lot_number`). Members of a set combine with each other, not with the other choices.","type":"string"},"quantity_difference":{"description":"Either a positive or negative number that shows the change in quantity for this inventory item.","type":"number"},"serial_number":{"description":"The serial number of the asset.\n\nChoose exactly one of: `serial_number`, or the set (`count_adjustment`, `lot_number`). Members of a set combine with each other, not with the other choices.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"value_difference":{"description":"Either a positive or negative number that shows a change in the total value of the entire stock of this inventory item.","type":"number"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateInventoryAdjustment_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update inventory adjustment","tags":["Inventory Adjustments"]}},"/workflow-templates/{key}/usage.md":{"get":{"description":"The same contract as `GET /workflow-templates/{key}/usage`, as one Markdown document, intended to be handed to whatever is writing the calling code.","parameters":[{"description":"The template's key (see GET /workflow-templates)","in":"path","name":"key","required":true,"schema":{"pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"}}],"responses":{"200":{"content":{"text/markdown":{"schema":{"type":"string"}}},"description":"The usage contract as Markdown"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No template with that key"}},"security":[{"apiKey":[]}],"summary":"How to use a workflow template, as Markdown","tags":["Workflows"]}},"/connections/{connection_id}/payroll-prior-payments":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listPayrollPriorPayments_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollPriorPaymentQueryRq`.\n\nIntuit's reference: [PayrollPriorPaymentQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollpriorpaymentquery).","operationId":"listPayrollPriorPayments","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AccountRef","Amount","EditSequence","IsAffectingAccounts","Memo","PayrollDate","PayrollPriorPaymentLineRet","RefNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"QuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"format":"date-time","type":"string"},"to_modified_date":{"format":"date-time","type":"string"}},"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"payroll_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_payroll_date":false,"to_payroll_date":false}},"properties":{"from_payroll_date":{"format":"date","type":"string"},"to_payroll_date":{"format":"date","type":"string"}},"title":"FromPayrollDate + ToPayrollDate","type":"object"},{"properties":{"date_macro":{"enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"type":"string"},"to_ref_number":{"type":"string"}},"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"format":"date","type":"string"},"to_txn_date":{"format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listPayrollPriorPayments_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List payroll prior payments","tags":["Payroll Prior Payments"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createPayrollPriorPayment_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollPriorPaymentAddRq`. The `payroll_prior_payment_add` wrapper from qbXML is also accepted.\n\nIntuit's reference: [PayrollPriorPaymentAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollpriorpaymentadd).","operationId":"createPayrollPriorPayment","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"is_affecting_accounts":true,"memo":"Monthly service","payroll_prior_payment_line_add":[{"account_ref":{"full_name":"Office Supplies"},"amount":250.0,"memo":"Monthly service"}],"ref_number":"1001","txn_date":"2026-01-15"},"schema":{"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"def_macro":{"type":"string"},"include_ret_element":{"items":{"enum":["AccountRef","Amount","EditSequence","IsAffectingAccounts","Memo","PayrollDate","PayrollPriorPaymentLineRet","RefNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_affecting_accounts":{"type":"boolean"},"memo":{"type":"string"},"payroll_date":{"format":"date","type":"string"},"payroll_prior_payment_line_add":{"items":{"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"amount":{"type":"number"},"memo":{"type":"string"},"payroll_item_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"ref_number":{"type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_date":{"format":"date","type":"string"}},"required":["is_affecting_accounts","payroll_prior_payment_line_add"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createPayrollPriorPayment_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create payroll prior payment","tags":["Payroll Prior Payments"]}},"/connections/{connection_id}/bar-codes":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listBarCodes_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `BarCodeQueryRq`, from qbXML 12.0.\n\nIntuit's reference: [BarCodeQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/barcodequery).","operationId":"listBarCodes","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every result: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"bar_code_value","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listBarCodes_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List bar codes","tags":["Bar Codes"]}},"/connections/{connection_id}/entities":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listEntities_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `EntityQueryRq`.\n\nQueries for the specified entity or entities. A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list.\n\nIntuit's reference: [EntityQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/entityquery).","operationId":"listEntities","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `full_name` or `list_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AccountNumber","AdditionalContactRef","AdditionalNotesRet","AdjustedServiceDate","AltContact","AltPhone","Balance","BillAddress","BillAddressBlock","BillingRateRef","BirthDate","Cc","ClassRef","CompanyName","Contact","ContactsRet","CreditCardInfo","CreditLimit","CurrencyRef","CustomerTypeRef","DataExtRet","DeliveryMethod","Department","Description","DisabilityDesc","Disabled","EditSequence","Email","EmergencyContacts","EmployeeAddress","EmployeePayrollInfo","EmployeeType","Ethnicity","Exempt","ExternalGUID","Fax","FirstName","FullName","Gender","HiredDate","IsActive","IsSalesTaxAgency","IsStatementWithParent","IsTaxAgency","IsTaxOnTax","IsTaxTrackedOnPurchases","IsTaxTrackedOnSales","IsVendorEligibleFor1099","ItemSalesTaxRef","JobDesc","JobEndDate","JobProjectedEndDate","JobStartDate","JobStatus","JobTitle","JobTypeRef","KeyEmployee","LastName","ListID","MiddleName","MilitaryStatus","Mobile","Name","NameOnCheck","Notes","OnFile","OriginalHireDate","OtherNameAddress","OtherNameAddressBlock","Pager","PagerPIN","ParentRef","PartOrFullTime","Phone","PreferredDeliveryMethod","PreferredPaymentMethodRef","PrefillAccountRef","PriceLevelRef","PrintAs","ReleasedDate","ReportingPeriod","ResaleNumber","SSN","SalesRepRef","SalesTaxCodeRef","SalesTaxCountry","SalesTaxReturnRef","Salutation","ShipAddress","ShipAddressBlock","ShipToAddress","Sublevel","Suffix","SupervisorRef","TargetBonus","TaxOnPurchasesAccountRef","TaxOnSalesAccountRef","TaxRegistrationNumber","TermsRef","TimeCreated","TimeModified","TotalBalance","USCitizen","USVeteran","VendorAddress","VendorAddressBlock","VendorTaxIdent","VendorTypeRef","WorkAuthExpireDate"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listEntities_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List entities","tags":["Entities"]}},"/connections/{connection_id}/txn-void":{"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/executeTxnVoid_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `TxnVoidRq`, from qbXML 1.1.\n\nVoids a transaction: QuickBooks keeps it, with its amounts and its lines' quantities at zero and \"VOID: \" in front of its memo, while deleting one removes it completely. A voided invoice keeps its number and reads back as paid. An invoice that payments paid can be voided too: each payment stays, and what it had applied to the invoice becomes its unused payment, to apply elsewhere or refund (observed on QuickBooks Enterprise 24.0, 2026-10-10).\n\nIf you try to void or delete a transaction while it is in use, you will get an error. You will also get an error if you try to void or delete a transaction (say a sales receipt) while a linked transaction (such as a deposit) is in use. If you try to void or delete a transaction that was created before the company’s closing date, you might or might not get an error, depending on the permissions and passwords that are set in QuickBooks.\n\nThe mode in which a QuickBooks company file is open (single-user or multiuser) doesn’t impact your application’s ability to void transaction objects in it.\n\nIntuit's reference: [TxnVoid](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/txnvoid).","operationId":"executeTxnVoid","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"txn_id":"1A2B-1700000000","txn_void_type":"Invoice"},"schema":{"properties":{"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_void_type":{"description":"The type of transaction being voided.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","SalesReceipt","VendorCredit"],"type":"string"}},"required":["txn_id","txn_void_type"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/executeTxnVoid_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Execute txn void","tags":["Txn Void"]}},"/connections/{connection_id}/customer-types":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listCustomerTypes_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CustomerTypeQueryRq`.\n\nQueries for the specified customer type or set of types.\n\nIntuit's reference: [CustomerTypeQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/customertypequery).","operationId":"listCustomerTypes","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["EditSequence","FullName","IsActive","ListID","Name","ParentRef","Sublevel","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listCustomerTypes_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List customer types","tags":["Customer Types"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createCustomerType_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CustomerTypeAddRq`. The `customer_type_add` wrapper from qbXML is also accepted.\n\nIntuit's reference: [CustomerTypeAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/customertypeadd).","operationId":"createCustomerType","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"Retail"},"schema":{"properties":{"include_ret_element":{"items":{"enum":["EditSequence","ExternalGUID","FullName","IsActive","ListID","Name","OwnerID","ParentRef","Sublevel","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createCustomerType_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create customer type","tags":["Customer Types"]}},"/connections/{connection_id}/item-subtotals":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listItemSubtotals_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemSubtotalQueryRq`.\n\nQueries for the specified subtotal item or set of items.\n\nIntuit's reference: [ItemSubtotalQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemsubtotalquery).","operationId":"listItemSubtotals","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `full_name` or `list_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["BarCodeValue","DataExtRet","EditSequence","ExternalGUID","IsActive","ItemDesc","ListID","Name","SpecialItemType","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listItemSubtotals_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List item subtotals","tags":["Item Subtotals"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createItemSubtotal_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemSubtotalAddRq`. The `item_subtotal_add` wrapper from qbXML is also accepted.\n\nAdds a subtotal item. On a sales form, a subtotal item will add up the amounts of the item lines above it, up to the previous subtotal.\n\nItems must be subtotaled before a discount is applied (using ItemDiscount), because a discount applies only to the line that is directly above it.\n\nIntuit's reference: [ItemSubtotalAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemsubtotaladd).","operationId":"createItemSubtotal","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"Subtotal"},"schema":{"properties":{"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["BarCodeValue","DataExtRet","EditSequence","ExternalGUID","IsActive","ItemDesc","ListID","Name","OwnerID","SpecialItemType","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createItemSubtotal_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create item subtotal","tags":["Item Subtotals"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateItemSubtotal_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemSubtotalModRq`, from qbXML 3.0. The `item_subtotal_mod` wrapper from qbXML is also accepted.\n\nModifies an existing subtotal item.\n\nIntuit's reference: [ItemSubtotalMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemsubtotalmod).","operationId":"updateItemSubtotal","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Subtotal"},"schema":{"properties":{"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"include_ret_element":{"items":{"enum":["BarCodeValue","DataExtRet","EditSequence","ExternalGUID","IsActive","ItemDesc","ListID","Name","OwnerID","SpecialItemType","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateItemSubtotal_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update item subtotal","tags":["Item Subtotals"]}},"/connections/{connection_id}/payroll-item-additions":{"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createPayrollItemAddition_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollItemAdditionAddRq`. The `payroll_item_addition_add` wrapper from qbXML is also accepted.\n\nIntuit's reference: [PayrollItemAdditionAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollitemadditionadd).","operationId":"createPayrollItemAddition","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"expense_account_ref":{"full_name":"Payroll Expenses"},"name":"Bonus"},"schema":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"calculated_based_on":{"enum":["HoursAll","HoursWorked","Quantity","Rate"],"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["CalculatedBasedOn","EditSequence","ExpenseAccountRef","IsActive","IsTrackedByCustJob","Limit","LimitTimePeriod","ListID","Name","NetOrGross","PayrollItemDetailTypeValue","Rate","RatePercent","Taxability","TimeCreated","TimeModified","W2TrackingTypeValue"],"type":"string"},"type":"array"},"is_active":{"type":"boolean"},"is_tracked_by_cust_job":{"type":"boolean"},"limit":{"type":"number"},"limit_time_period":{"enum":["Annual","Forever"],"type":"string"},"name":{"type":"string"},"net_or_gross":{"enum":["Gross","Net"],"type":"string"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"taxability":{"items":{"properties":{"is_tax_applied":{"type":"boolean"},"payroll_item_tax_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"required":["is_tax_applied","payroll_item_tax_ref"],"type":"object"},"type":"array"},"w2_tracking_type_value":{"type":"integer"}},"required":["expense_account_ref","name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createPayrollItemAddition_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create payroll item addition","tags":["Payroll Item Additions"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updatePayrollItemAddition_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollItemAdditionModRq`. The `payroll_item_addition_mod` wrapper from qbXML is also accepted.\n\nIntuit's reference: [PayrollItemAdditionMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollitemadditionmod).","operationId":"updatePayrollItemAddition","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Bonus"},"schema":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"calculated_based_on":{"enum":["HoursAll","HoursWorked","Quantity","Rate"],"type":"string"},"edit_sequence":{"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["CalculatedBasedOn","EditSequence","ExpenseAccountRef","IsActive","IsTrackedByCustJob","Limit","LimitTimePeriod","ListID","Name","NetOrGross","PayrollItemDetailTypeValue","Rate","RatePercent","Taxability","TimeCreated","TimeModified","W2TrackingTypeValue"],"type":"string"},"type":"array"},"is_active":{"type":"boolean"},"is_tracked_by_cust_job":{"type":"boolean"},"limit":{"type":"number"},"limit_time_period":{"enum":["Annual","Forever"],"type":"string"},"list_id":{"type":"string"},"name":{"type":"string"},"net_or_gross":{"enum":["Gross","Net"],"type":"string"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"taxability":{"items":{"properties":{"is_tax_applied":{"type":"boolean"},"payroll_item_tax_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"required":["is_tax_applied","payroll_item_tax_ref"],"type":"object"},"type":"array"},"w2_tracking_type_value":{"type":"integer"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updatePayrollItemAddition_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update payroll item addition","tags":["Payroll Item Additions"]}},"/workflows/{key}/unpublish":{"post":{"description":"Clears the published version. The versions themselves stay -- history is append-only. Refused while a published workflow calls this one.","parameters":[{"description":"The workflow's stable key","in":"path","name":"key","required":true,"schema":{"pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Workflow"}},"type":"object"}}},"description":"The workflow, now a draft"},"422":{"description":"A published workflow still calls this one"}},"security":[{"apiKey":[]}],"summary":"Unpublish a workflow","tags":["Workflows"]}},"/connections/{connection_id}/account-tax-line-infos":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listAccountTaxLineInfos_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `AccountTaxLineInfoQueryRq`, from qbXML 7.0.\n\nUsed to determine which tax line values are available for the `tax_line_id` value for AccountMod and AccountAdd requests that use the `tax_line_id` field to map the account to a federal tax line.\n\nIntuit's reference: [AccountTaxLineInfoQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/accounttaxlineinfoquery).","operationId":"listAccountTaxLineInfos","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listAccountTaxLineInfos_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List account tax line infos","tags":["Account Tax Line Infos"]}},"/connections/{connection_id}/queued-requests":{"get":{"description":"Every request queued on this connection, most recent first. Prefer a `webhook_url` on each request over polling this (see the Webhooks guide); it's here for a dashboard, a script, or catching up after downtime.","operationId":"listQueuedRequests","parameters":[{"description":"The connection to act on.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"page","schema":{"default":1,"minimum":1,"type":"integer"}},{"in":"query","name":"page_size","schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"sort","schema":{"default":"inserted_at","enum":["inserted_at","updated_at"],"type":"string"}},{"in":"query","name":"sort_direction","schema":{"default":"desc","enum":["asc","desc"],"type":"string"}},{"in":"query","name":"search_phrase","schema":{"type":"string"}},{"in":"query","name":"state","schema":{"enum":["waiting","retryable","ticketed","sent","response_received","error","timed_out","discarded"],"type":"string"}},{"in":"query","name":"webhook_state","schema":{"enum":["not_applicable","pending","succeeded","failed"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/QueuedRequest"},"type":"array"},"meta":{"properties":{"page":{"type":"integer"},"total_pages":{"type":"integer"}},"required":["page","total_pages"],"type":"object"}},"type":"object"}}},"description":"A page of queued requests"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"apiKey":[]}],"summary":"List queued requests","tags":["Queued Requests"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/RawQBXMLResponseJSON"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"Usually, you'll want to use the pre-built operation endpoints, but if you really need qbXML we have you covered.\n\nRules for raw qbXML\n1. It has no DOCTYPE: qbXML doesn't use one.\n2. It declares its qbXML version, such as `<?qbxml version=\"16.0\"?>`, and the version is 13.0, 14.0, 15.0 or 16.0.\n3. It is valid against that version's qbXML schema.\n4. `<QBXML>` holds only `<QBXMLMsgsRq>`, with at least one request inside it.\n5. In a batch (two or more requests), no request has an `iterator` attribute: queue an iterator query on its own.\n6. `onError` is `stopOnError` or `continueOnError`. QuickBooks Desktop refuses `rollbackOnError` for the whole envelope.\n\nA single request request answers exactly as an operation does: `response_json` is the same `{status, data}` summary, and a request QuickBooks refuses ends `error`. An iterator query (`iterator=\"Start\"` with `MaxReturned`), alone in its envelope, is paged as usual, one webhook per page. Unlike the operation endpoints, this one doesn't page a list query for you: one sent with neither answers every match at once, and the `201`'s `warnings` says so.\n\nA batch's (multiple requests inside one QBXMLMsgsRq envelope) `response_json` is `{status, responses}`: one entry per request, in the order they were sent, with `request` (the request's name), `request_id` (its `requestID`, or `null`) and `status`. An answered entry is `success` or `error`, with the `data`, `message`, `warning` or `error` one request's summary has. `not_processed` is a request QuickBooks skipped: with `onError=\"stopOnError\"` QuickBooks stops at the first request that fails and answers every request after it \"The request has not been processed.\" (status 3231), so each of those is `not_processed`, while `continueOnError` carries on and runs each one. A 3231 that isn't after an earlier failure is QuickBooks declining that request itself (its edition or preferences don't allow it), so it's an `error`. The top-level `status` is `success` only when every entry is.\n\nA batch QuickBooks answered is `response_received`, whatever its entries say: some of its requests may have been carried out. Read the entries to see which, and don't resend the whole batch.","operationId":"createQueuedRequest","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"request_xml":"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<?qbxml version=\"16.0\"?>\n<QBXML>\n  <QBXMLMsgsRq onError=\"stopOnError\">\n    <CustomerQueryRq requestID=\"1\">\n      <MaxReturned>10</MaxReturned>\n    </CustomerQueryRq>\n  </QBXMLMsgsRq>\n</QBXML>"},"schema":{"additionalProperties":false,"properties":{"request_xml":{"description":"The whole qbXML document: the `<?qbxml version=\"...\"?>` declaration, then `<QBXML>`, then `<QBXMLMsgsRq>` holding one request, or several to run as a batch. Sent to QuickBooks as it is, except that a character above ASCII goes as a character reference (`é` as `&#xE9;`): QuickBooks fails the whole document on `é`, `–` or `’` written as itself.","type":"string"}},"required":["request_xml"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/RawQBXMLResponseJSON"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]},"warnings":{"description":"What QuBe Sync noticed about the qbXML as written, which it queued anyway; empty when there's nothing to say. These are in this response only: they aren't stored, and `links.self` doesn't return them. `unpaged_query` is a list query QuickBooks pages (customers, invoices and the other lists and transactions) sent with neither an `iterator` attribute nor `MaxReturned`, and not looking records up by id or name: QuickBooks answers it with every match at once. The operation endpoints page such a query by default; qbXML queued here is sent as written.","items":{"properties":{"code":{"enum":["unpaged_query"],"type":"string"},"message":{"description":"What it found and how to page it, naming the request.","type":"string"}},"required":["code","message"],"type":"object"},"type":"array"}},"required":["data","warnings"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"},"location":{"description":"The queued request's path. `links.self` is the same request as a full URL.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"example":{"errors":"unknown parameter: \"request_json\""},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A parameter this endpoint does not take: anything but `request_xml` and `webhook_url`. Nothing was queued."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"content":{"application/json":{"example":{"errors":{"request_xml":["CustomerQueryRq has an iterator: queue an iterator query on its own, not in a batch"]}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"`request_xml` or `webhook_url` failed validation, field by field, and nothing was queued: a `request_xml` that is missing or breaks one of the rules above, or a `webhook_url` that is not an absolute http or https URL, carries a username or password, is longer than 2048 characters, or (in production) points at localhost or a private address. An `Idempotency-Key` that isn't 1 to 255 printable ASCII characters, or that was already used for a different request, is refused in a sentence naming the header."}},"summary":"Queue a qbXML request","tags":["Queued Requests"]}},"/connections/{connection_id}/lists":{"delete":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/deleteList_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ListDelRq`, from qbXML 1.1.\n\nYou can only delete a list item from a QuickBooks company file if the file is open in single-user mode. If the file is open in multiuser mode, your application will receive an error. (This restriction doesn’t apply to deleting or voiding transaction objects.)\n\nIntuit's reference: [ListDel](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/listdel).","operationId":"deleteList","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"list_del_type":"Customer","list_id":"80000001-1700000000"},"schema":{"properties":{"list_del_type":{"description":"The type of list from which a list member is being deleted.","enum":["Account","BillingRate","Class","Currency","Customer","CustomerMsg","CustomerType","DateDrivenTerms","Employee","InventorySite","ItemDiscount","ItemFixedAsset","ItemGroup","ItemInventory","ItemInventoryAssembly","ItemNonInventory","ItemOtherCharge","ItemPayment","ItemSalesTax","ItemSalesTaxGroup","ItemService","ItemSubtotal","JobType","OtherName","PaymentMethod","PayrollItemNonWage","PayrollItemWage","PriceLevel","SalesRep","SalesTaxCode","ShipMethod","StandardTerms","ToDo","UnitOfMeasureSet","Vehicle","Vendor","VendorType","WorkersCompCode"],"type":"string"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["list_del_type","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/deleteList_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Delete list","tags":["Lists"]}},"/connections/{connection_id}/item-payments":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listItemPayments_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemPaymentQueryRq`.\n\nQueries for the specified item payment or set of payments.\n\nIntuit's reference: [ItemPaymentQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itempaymentquery).","operationId":"listItemPayments","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `full_name` or `list_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters according to the object’s class.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["BarCodeValue","ClassRef","DataExtRet","DepositToAccountRef","EditSequence","ExternalGUID","IsActive","ItemDesc","ListID","Name","PaymentMethodRef","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listItemPayments_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List item payments","tags":["Item Payments"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createItemPayment_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemPaymentAddRq`. The `item_payment_add` wrapper from qbXML is also accepted.\n\nFor an ItemPaymentAdd request, you can “set” the “Group with undeposited funds” radio button in QuickBooks either by not specifying `deposit_to_account_ref` at all, or by specifying the special UndepositedFunds account for the `deposit_to_account_ref`.\n\nIntuit's reference: [ItemPaymentAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itempaymentadd).","operationId":"createItemPayment","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"Payment Received"},"schema":{"properties":{"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["BarCodeValue","ClassRef","DataExtRet","DepositToAccountRef","EditSequence","ExternalGUID","IsActive","ItemDesc","ListID","Name","OwnerID","PaymentMethodRef","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createItemPayment_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create item payment","tags":["Item Payments"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateItemPayment_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemPaymentModRq`, from qbXML 3.0. The `item_payment_mod` wrapper from qbXML is also accepted.\n\nFor an ItemPaymentMod request, you can “set” the “Group with undeposited funds” radio button in QuickBooks by either attempting to clear the `deposit_to_account_ref`, or by specifying the account whose SpecialAccountType is UndepositedFunds for the `deposit_to_account_ref`.\n\nIntuit's reference: [ItemPaymentMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itempaymentmod).","operationId":"updateItemPayment","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Payment Received"},"schema":{"properties":{"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"include_ret_element":{"items":{"enum":["BarCodeValue","ClassRef","DataExtRet","DepositToAccountRef","EditSequence","ExternalGUID","IsActive","ItemDesc","ListID","Name","OwnerID","PaymentMethodRef","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateItemPayment_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update item payment","tags":["Item Payments"]}},"/connections/{connection_id}/item-fixed-assets":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listItemFixedAssets_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemFixedAssetQueryRq`, from qbXML 3.0.\n\nQueries for the specifed fixed-asset item or set of fixed asset items.\n\nIntuit's reference: [ItemFixedAssetQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemfixedassetquery).","operationId":"listItemFixedAssets","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `full_name` or `list_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters according to the object’s class.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AcquiredAs","AssetAccountRef","AssetDesc","AssetNumber","BarCodeValue","ClassRef","CostBasis","DataExtRet","EditSequence","ExternalGUID","FixedAssetSalesInfo","IsActive","ListID","Location","Name","Notes","PONumber","PurchaseCost","PurchaseDate","PurchaseDesc","SerialNumber","TimeCreated","TimeModified","VendorOrPayeeName","WarrantyExpDate","YearEndAccumulatedDepreciation","YearEndBookValue"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listItemFixedAssets_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List item fixed assets","tags":["Item Fixed Assets"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createItemFixedAsset_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemFixedAssetAddRq`, from qbXML 3.0. The `item_fixed_asset_add` wrapper from qbXML is also accepted.\n\nAdds a fixed-asset item. Fixed-asset items represent assets that will benefit a business for longer than one year. The purchase price of these fixed assets is typically expensed over a period of years, rather than in the year the purchase was made.\n\nIntuit's reference: [ItemFixedAssetAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemfixedassetadd).","operationId":"createItemFixedAsset","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"acquired_as":"New","name":"Delivery Van","purchase_date":"2026-01-15","purchase_desc":"Used delivery van"},"schema":{"properties":{"acquired_as":{"description":"Indicates whether this item was new or used when the business acquired it.","enum":["New","Old"],"type":"string"},"asset_account_ref":{"description":"Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"asset_desc":{"description":"Description of the asset—maker, brand, and so on.","type":"string"},"asset_number":{"description":"The number used by the QuickBooks Fixed Asset Manager to identify this asset.","type":"string"},"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost_basis":{"description":"The total cost of the fixed asset. This can include the cost of improvements or repairs. This amount is used to figure depreciation.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"fixed_asset_sales_info":{"description":"Sales information, if this fixed asset was sold.","properties":{"sales_date":{"description":"Date when a fixed asset was sold.","format":"date","type":"string"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_expense":{"description":"Any expenses that were incurred during the sale of a fixed asset.","type":"number"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"required":["sales_date","sales_desc"],"type":"object"},"include_ret_element":{"items":{"enum":["AcquiredAs","AssetAccountRef","AssetDesc","AssetNumber","BarCodeValue","ClassRef","CostBasis","DataExtRet","EditSequence","ExternalGUID","FixedAssetSalesInfo","IsActive","ListID","Location","Name","Notes","OwnerID","PONumber","PurchaseCost","PurchaseDate","PurchaseDesc","SerialNumber","TimeCreated","TimeModified","TxnID","TxnNumber","VendorOrPayeeName","WarrantyExpDate","YearEndAccumulatedDepreciation","YearEndBookValue"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"location":{"description":"Where the asset is located or has been placed into service.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"notes":{"description":"Additional information.","type":"string"},"po_number":{"description":"Purchase order number.","type":"string"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_date":{"description":"The date when this asset was purchased.","format":"date","type":"string"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"serial_number":{"description":"The serial number of the asset.","type":"string"},"vendor_or_payee_name":{"description":"The name of the vendor from whom this asset was purchased.","type":"string"},"warranty_exp_date":{"description":"The date when the warranty for this asset expires.","format":"date","type":"string"},"year_end_accumulated_depreciation":{"description":"The amount the fixed asset has lost in value since it was purchased, as of the end of the year.","type":"number"},"year_end_book_value":{"description":"A reasonable estimate of the sales value of the fixed asset, as of the end of the year.","type":"number"}},"required":["acquired_as","name","purchase_date","purchase_desc"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createItemFixedAsset_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create item fixed asset","tags":["Item Fixed Assets"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateItemFixedAsset_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemFixedAssetModRq`, from qbXML 3.0. The `item_fixed_asset_mod` wrapper from qbXML is also accepted.\n\nModifies a fixed asset item. Fixed-asset items represent assets that will benefit a business for longer than one year. The purchase price of these fixed assets is typically expensed over a period of years, rather than in the year the purchase was made.\n\nIntuit's reference: [ItemFixedAssetMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemfixedassetmod).","operationId":"updateItemFixedAsset","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Delivery Van"},"schema":{"properties":{"acquired_as":{"description":"Indicates whether this item was new or used when the business acquired it.","enum":["New","Old"],"type":"string"},"asset_account_ref":{"description":"Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"asset_desc":{"description":"Description of the asset—maker, brand, and so on.","type":"string"},"asset_number":{"description":"The number used by the QuickBooks Fixed Asset Manager to identify this asset.","type":"string"},"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost_basis":{"description":"The total cost of the fixed asset. This can include the cost of improvements or repairs. This amount is used to figure depreciation.","type":"number"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"fixed_asset_sales_info_mod":{"description":"Sales information, if this fixed asset was sold.","properties":{"sales_date":{"description":"Date when a fixed asset was sold.","format":"date","type":"string"},"sales_desc":{"description":"Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).","type":"string"},"sales_expense":{"description":"Any expenses that were incurred during the sale of a fixed asset.","type":"number"},"sales_price":{"description":"Price charged for this item.","type":"number"}},"type":"object"},"include_ret_element":{"items":{"enum":["AcquiredAs","AssetAccountRef","AssetDesc","AssetNumber","BarCodeValue","ClassRef","CostBasis","DataExtRet","EditSequence","ExternalGUID","FixedAssetSalesInfo","IsActive","ListID","Location","Name","Notes","OwnerID","PONumber","PurchaseCost","PurchaseDate","PurchaseDesc","SerialNumber","TimeCreated","TimeModified","TxnID","TxnNumber","VendorOrPayeeName","WarrantyExpDate","YearEndAccumulatedDepreciation","YearEndBookValue"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"location":{"description":"Where the asset is located or has been placed into service.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"notes":{"description":"Additional information.","type":"string"},"po_number":{"description":"Purchase order number.","type":"string"},"purchase_cost":{"description":"Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.","type":"number"},"purchase_date":{"description":"The date when this asset was purchased.","format":"date","type":"string"},"purchase_desc":{"description":"Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"serial_number":{"description":"The serial number of the asset.","type":"string"},"vendor_or_payee_name":{"description":"The name of the vendor from whom this asset was purchased.","type":"string"},"warranty_exp_date":{"description":"The date when the warranty for this asset expires.","format":"date","type":"string"},"year_end_accumulated_depreciation":{"description":"The amount the fixed asset has lost in value since it was purchased, as of the end of the year.","type":"number"},"year_end_book_value":{"description":"A reasonable estimate of the sales value of the fixed asset, as of the end of the year.","type":"number"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateItemFixedAsset_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update item fixed asset","tags":["Item Fixed Assets"]}},"/connections/{connection_id}/sales-orders":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listSalesOrders_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SalesOrderQueryRq`, from qbXML 2.1.\n\nQueries for the specified sales order or set of sales orders.\n\nIntuit's reference: [SalesOrderQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/salesorderquery).","operationId":"listSalesOrders","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items` or `include_linked_txns`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"description":"If you set `include_linked_txns` to true, then the returned object will include a list of all the transactions linked to the queried object. (This list is similar to the History view of a transaction in the user interface, but not identical, as the SDK list contains only linked transactions, not items.) Each linked transaction will be represented by a `linked_txn` aggregate.","in":"query","name":"include_linked_txns","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["BillAddress","BillAddressBlock","ClassRef","CurrencyRef","CustomerMsgRef","CustomerRef","CustomerSalesTaxCodeRef","DataExtRet","DueDate","EditSequence","ExchangeRate","ExternalGUID","FOB","FulfillmentStatus","IsFullyInvoiced","IsManuallyClosed","IsTaxIncluded","IsToBeEmailed","IsToBePrinted","ItemSalesTaxRef","LinkedTxn","Memo","Other","PONumber","RefNumber","SOChannel","SalesOrderLineGroupRet","SalesOrderLineRet","SalesRepRef","SalesTaxPercentage","SalesTaxTotal","ShipAddress","ShipAddressBlock","ShipDate","ShipMethodRef","ShippingDetails","StoreName","StoreType","Subtotal","TemplateRef","TermsRef","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listSalesOrders_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List sales orders","tags":["Sales Orders"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createSalesOrder_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SalesOrderAddRq`, from qbXML 2.1. The `sales_order_add` wrapper from qbXML is also accepted.\n\nAdds a sales order: goods a customer has ordered, often on back order, to be invoiced when they ship. A sales order doesn't post to any account. `customer_ref` is required, and lines go in `sales_order_line_add`. Sales orders need QuickBooks Premier or above. An invoice made from a sales order needs a sales tax item, so set `item_sales_tax_ref` if the company charges sales tax.\n\nYou can create Sales Orders only with QuickBooks Premier and above. However, if you are accessing a company file created in Premier and above from a lesser edition of QuickBooks (such as Pro), you should be able to do queries against SalesOrders and also Mods.\n\nSince a sales order is a non-posting transaction, QuickBooks business logic doesn’t require the sales tax information at the point where the SalesOrder is added. (In the OSR this is an optional field.) However, the sales tax item IS required for the invoice. So if the SalesOrder doesn’t have a sales tax item set for it, you need to modify it so that it does have one before you create an invoice using that sales order.\n\nIntuit's reference: [SalesOrderAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/salesorderadd).","operationId":"createSalesOrder","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"bill_address":{"addr1":"123 Main St","city":"Springfield","postal_code":"62701","state":"IL"},"customer_ref":{"full_name":"Acme Corp"},"memo":"Monthly service","ref_number":"1001","sales_order_line_add":[{"desc":"Blue widget, large","item_ref":{"full_name":"Widget"},"quantity":2,"rate":125.0}],"txn_date":"2026-01-15"},"schema":{"not":{"anyOf":[{"properties":{"sales_order_line_add":{"maxItems":0},"sales_order_line_group_add":{"maxItems":0}}}]},"properties":{"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"include_ret_element":{"items":{"enum":["BillAddress","BillAddressBlock","ClassRef","CurrencyRef","CustomerMsgRef","CustomerRef","CustomerSalesTaxCodeRef","DataExtRet","DueDate","EditSequence","ExchangeRate","ExternalGUID","FOB","FulfillmentStatus","IsFullyInvoiced","IsManuallyClosed","IsTaxIncluded","IsToBeEmailed","IsToBePrinted","ItemSalesTaxRef","LinkedTxn","ListID","Memo","Other","OwnerID","PONumber","RefNumber","SOChannel","SalesOrderLineGroupRet","SalesOrderLineRet","SalesRepRef","SalesTaxPercentage","SalesTaxTotal","ShipAddress","ShipAddressBlock","ShipDate","ShipMethodRef","ShippingDetails","StoreName","StoreType","Subtotal","TemplateRef","TermsRef","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this sales order has been closed, even if some line items within it haven’t been invoiced.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"po_number":{"description":"Purchase order number.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_order_line_add":{"description":"Represents one line in the sales order. Compare with SalesOrderLineGroup, which represents a previously defined group of lines in the sales order.\n\nAt least one entry is required across `sales_order_line_add` and `sales_order_line_group_add`; they combine, any number of each. QuickBooks receives them in that order: every `sales_order_line_add`, then every `sales_order_line_group_add`.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["rate","price_level_ref"]},{"required":["rate_percent","price_level_ref"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this sales order has been closed, even if some line items within it haven’t been invoiced.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"option_for_price_rule_conflict":{"description":"Flag to override price rule conflict.","enum":["BasePrice","Zero"],"type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"sales_order_line_group_add":{"description":"Represents a previously defined group of lines in the sales order. Compare with SalesOrderLine, which represents just one line in the sales order.\n\nAt least one entry is required across `sales_order_line_add` and `sales_order_line_group_add`; they combine, any number of each. QuickBooks receives them in that order: every `sales_order_line_add`, then every `sales_order_line_group_add`.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["item_group_ref"],"type":"object"},"type":"array"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"}},"required":["customer_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createSalesOrder_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create sales order","tags":["Sales Orders"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateSalesOrder_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SalesOrderModRq`, from qbXML 3.0. The `sales_order_mod` wrapper from qbXML is also accepted.\n\nSome fields in a SalesOrderMod request can’t be cleared. If any of the following fields is included in a sales-order modify request, it must contain a value:\n\n- `customer_ref`\n- `template_ref`\n- `txn_date`\n- `due_date`\n- `ship_date`\n- `item_sales_tax_ref`\n- `is_manually_closed`\n- `is_to_be_printed`\n\nWithin `sales_order_line_mod` or `sales_order_line_group_mod`:\n\n- `item_ref`\n- Quantity\n- Rate\n- Amount\n- `sales_tax_code_ref`\n- `is_manually_closed`\n\n(For more details about what it means for a field to be clearable or not clearable, see the QB SDK Programmer’s Guide ([PDF](https://developer.intuit.com/app/developer/logged-in-content/QBSDK_ProGuide.pdf), 9.6 MB) in the Desktop SDK installation, in QBSDK13.0/doc/pdf/QBWC_ProGuide.pdf.)\n\nIntuit's reference: [SalesOrderMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/salesordermod).","operationId":"updateSalesOrder","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"bill_address":{"addr1":"123 Main St","city":"Springfield","postal_code":"62701","state":"IL"},"customer_ref":{"full_name":"Acme Corp"},"edit_sequence":"1700000000","memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","txn_id":"1A2B-1700000000"},"schema":{"properties":{"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"include_ret_element":{"items":{"enum":["BillAddress","BillAddressBlock","ClassRef","CurrencyRef","CustomerMsgRef","CustomerRef","CustomerSalesTaxCodeRef","DataExtRet","DueDate","EditSequence","ExchangeRate","ExternalGUID","FOB","FulfillmentStatus","IsFullyInvoiced","IsManuallyClosed","IsTaxIncluded","IsToBeEmailed","IsToBePrinted","ItemSalesTaxRef","LinkedTxn","ListID","Memo","Other","OwnerID","PONumber","RefNumber","SOChannel","SalesOrderLineGroupRet","SalesOrderLineRet","SalesRepRef","SalesTaxPercentage","SalesTaxTotal","ShipAddress","ShipAddressBlock","ShipDate","ShipMethodRef","ShippingDetails","StoreName","StoreType","Subtotal","TemplateRef","TermsRef","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this sales order has been closed, even if some line items within it haven’t been invoiced.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Additional information.","type":"string"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"po_number":{"description":"Purchase order number.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_order_line_group_mod":{"description":"Represents a previously defined group of lines in the sales order. Compare with SalesOrderLine, which represents just one line in the sales order.\n\n`sales_order_line_mod` and `sales_order_line_group_mod` combine: any number of each. QuickBooks receives them in that order: every `sales_order_line_mod`, then every `sales_order_line_group_mod`.","items":{"properties":{"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_order_line_mod":{"description":"Represents one line in the sales order. Compare with SalesOrderLineGroup, which represents a previously defined group of lines in the sales order.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["rate","price_level_ref"]},{"required":["rate_percent","price_level_ref"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this sales order has been closed, even if some line items within it haven’t been invoiced.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"option_for_price_rule_conflict":{"description":"Flag to override price rule conflict.","enum":["BasePrice","Zero"],"type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"sales_order_line_mod":{"description":"Represents one line in the sales order. Compare with SalesOrderLineGroup, which represents a previously defined group of lines in the sales order.\n\n`sales_order_line_mod` and `sales_order_line_group_mod` combine: any number of each. QuickBooks receives them in that order: every `sales_order_line_mod`, then every `sales_order_line_group_mod`.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["rate","price_level_ref"]},{"required":["rate_percent","price_level_ref"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this sales order has been closed, even if some line items within it haven’t been invoiced.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"option_for_price_rule_conflict":{"description":"Flag to override price rule conflict.","enum":["BasePrice","Zero"],"type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateSalesOrder_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update sales order","tags":["Sales Orders"]}},"/connections/{connection_id}/vehicles":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listVehicles_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `VehicleQueryRq`, from qbXML 6.0.\n\nVehicleQuery is a list query that returns vehicle data for all vehicles that match the provided filter criteria. You can query by vehicle list ID, or its name, or by name comparision or by a range of name comparisons (name filters).\n\nIntuit's reference: [VehicleQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/vehiclequery).","operationId":"listVehicles","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["Desc","EditSequence","IsActive","ListID","Name","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listVehicles_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List vehicles","tags":["Vehicles"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createVehicle_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `VehicleAddRq`, from qbXML 6.0. The `vehicle_add` wrapper from qbXML is also accepted.\n\nAdds a vehicle to the vehicle list for use in VehicleMileage transactions. Each vehicle name must be unique.\n\nIntuit's reference: [VehicleAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/vehicleadd).","operationId":"createVehicle","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"Delivery Van"},"schema":{"properties":{"desc":{"description":"A descriptive text field.","type":"string"},"include_ret_element":{"items":{"enum":["Desc","EditSequence","ExternalGUID","IsActive","ListID","Name","OwnerID","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createVehicle_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create vehicle","tags":["Vehicles"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateVehicle_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `VehicleModRq`, from qbXML 6.0. The `vehicle_mod` wrapper from qbXML is also accepted.\n\nModifies a vehicle already in the vehicle list. Any modification, including changing the name, will cause corresponding changes in existing VehicleMileage transactions and in reports.\n\nIntuit's reference: [VehicleMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/vehiclemod).","operationId":"updateVehicle","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Delivery Van"},"schema":{"properties":{"desc":{"description":"A descriptive text field.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"include_ret_element":{"items":{"enum":["Desc","EditSequence","ExternalGUID","IsActive","ListID","Name","OwnerID","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateVehicle_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update vehicle","tags":["Vehicles"]}},"/connections/{connection_id}/list-deleteds":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listListDeleteds_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ListDeletedQueryRq`, from qbXML 2.0.\n\nA ListDeletedQuery will return all list elements deleted within the last 90 days, grouped according to object type.\n\nIf you are synchronizing deletes, you might want to specify `list_del_type` elements in order of dependency in a ListDeletedQuery request; for example, first specify a `list_del_type` of Item, then specify a `list_del_type` of Vendor. This way the SDK will return Item deletes before Vendor deletes (both in order of real delete times). Item depends on (refers to) to Vendor, so by having the Item deletes returned first you avoid a dependency problem.\n\nBy default, the records of each type are returned in ascending order, according to the “real” delete time. For example:\n\n- If list object A is deleted at 10 a.m. and list object B is deleted at 11 a.m., the query request will return A first, then B.\n- However, if the QuickBooks user moves the clock back before deleting B (for example, B is deleted at 9 a.m.), the query will still return first A then B, because B was deleted after A in “real” time.\n\nIntuit's reference: [ListDeletedQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/listdeletedquery).","operationId":"listListDeleteds","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Filters according to delete dates (within the last 90 days).","in":"query","name":"deleted_date_range_filter","required":false,"schema":{"properties":{"from_deleted_date":{"description":"Selects objects deleted on or after this date. Both `from_deleted_date` and `to_deleted_date` must be between 1970-01-01 and 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST). (But note that ListDeletedQuery requests will only return records deleted within the last 90 days, even if the specified `from_deleted_date` is earlier.)","format":"date-time","type":"string"},"to_deleted_date":{"description":"Selects objects deleted on or before this date. Both `to_deleted_date` and `from_deleted_date` must be between 1970-01-01 and 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST). If `to_deleted_date` includes a date but not a time (for example, if you set it to 2002-02-14), the time is assumed to be the end of the day (2003-02-14T23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["FullName","ListDelType","ListID","TimeCreated","TimeDeleted"],"type":"string"},"type":"array"}},{"description":"The type of list from which a list member is being deleted.","in":"query","name":"list_del_type","required":true,"schema":{"items":{"enum":["Account","BillingRate","Class","Currency","Customer","CustomerMsg","CustomerType","DateDrivenTerms","Employee","InventorySite","ItemDiscount","ItemFixedAsset","ItemGroup","ItemInventory","ItemInventoryAssembly","ItemNonInventory","ItemOtherCharge","ItemPayment","ItemSalesTax","ItemSalesTaxGroup","ItemService","ItemSubtotal","JobType","OtherName","PaymentMethod","PayrollItemNonWage","PayrollItemWage","PriceLevel","SalesRep","SalesTaxCode","ShipMethod","StandardTerms","ToDo","UnitOfMeasureSet","Vehicle","Vendor","VendorType","WorkersCompCode"],"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listListDeleteds_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List list deleteds","tags":["List Deleteds"]}},"/workflows/{key}":{"delete":{"description":"Deletes the workflow and its published versions, and frees its key: starting a run of it is a 404 until another workflow takes the key. Its runs are kept: each stays readable by the id your app stored (`GET /connections/{connection_id}/workflow-runs/{run_id}`) until retention removes it, still naming the workflow in `workflow`; `workflow_id` in its webhooks is null from then on. A run still in progress finishes on the version it started with, workflows it calls included. Refused with 409 `referenced_by: a, b` while another workflow of the app calls it through a workflow state -- in its working copy or in its published version -- and with 422 `promotion_required` in a production app whose organization only lets workflows change by promotion.","parameters":[{"description":"The workflow's stable key","in":"path","name":"key","required":true,"schema":{"pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"}}],"responses":{"204":{"description":"Deleted"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No workflow with that key"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Another workflow calls it: `referenced_by: a, b`"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"`promotion_required`: the organization only lets this production app's workflows change by promotion"}},"security":[{"apiKey":[]}],"summary":"Delete a workflow","tags":["Workflows"]},"get":{"description":"The chart itself, plus `input_schema` (a JSON Schema for what a run of it accepts) and `example_input` to prefill with.","parameters":[{"description":"The workflow's stable key","in":"path","name":"key","required":true,"schema":{"pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Workflow"}},"type":"object"}}},"description":"The workflow"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No workflow with that key"}},"security":[{"apiKey":[]}],"summary":"Get a workflow","tags":["Workflows"]},"put":{"description":"Upserts by key, so a chart kept in version control can be pushed from a deploy script. An invalid chart is refused with every problem listed at once. Only the working copy changes unless `publish` is given.","parameters":[{"description":"The workflow's stable key","in":"path","name":"key","required":true,"schema":{"pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"definition":{"$ref":"#/components/schemas/WorkflowChart"},"description":{"type":"string"},"name":{"type":"string"},"notes":{"description":"A note recorded in the history beside the version `publish: true` creates. Ignored without it.","type":"string"},"publish":{"description":"true publishes the working copy as the next version in the same call; false unpublishes. Without it, only the working copy changes.","type":"boolean"}},"required":["definition"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Workflow"}},"type":"object"}}},"description":"The workflow was replaced"},"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Workflow"}},"type":"object"}}},"description":"The workflow was created"},"422":{"content":{"application/json":{"schema":{"properties":{"errors":{"items":{"$ref":"#/components/schemas/WorkflowError"},"type":"array"}},"type":"object"}}},"description":"The chart did not validate"}},"security":[{"apiKey":[]}],"summary":"Create or replace a workflow","tags":["Workflows"]}},"/connections/{connection_id}/queued-requests/{id}":{"get":{"description":"The same document delivered to `webhook_url`, fetched on demand.","operationId":"getQueuedRequest","parameters":[{"description":"The connection to act on.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"The queued request.","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/QueuedRequest"}},"type":"object"}}},"description":"Found"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"apiKey":[]}],"summary":"Get a queued request","tags":["Queued Requests"]}},"/connections/{connection_id}/charges":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listCharges_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ChargeQueryRq`, from qbXML 2.0.\n\nA ChargeQuery request returns information about statement charges.\n\nIntuit's reference: [ChargeQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/chargequery).","operationId":"listCharges","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_linked_txns`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"If you set `include_linked_txns` to true, then the returned object will include a list of all the transactions linked to the queried object. (This list is similar to the History view of a transaction in the user interface, but not identical, as the SDK list contains only linked transactions, not items.) Each linked transaction will be represented by a `linked_txn` aggregate.","in":"query","name":"include_linked_txns","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["ARAccountRef","Amount","BalanceRemaining","BilledDate","ClassRef","CustomerRef","DataExtRet","Desc","DueDate","EditSequence","ExternalGUID","InventorySiteLocationRef","InventorySiteRef","IsPaid","ItemRef","LinkedTxn","OverrideUOMSetRef","Quantity","Rate","RefNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber","UnitOfMeasure"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"Allows you to filter for transactions according to whether or not they are paid.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"paid_status","required":false,"schema":{"enum":["All","NotPaidOnly","PaidOnly"],"type":"string"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listCharges_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List charges","tags":["Charges"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createCharge_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ChargeAddRq`, from qbXML 2.0. The `charge_add` wrapper from qbXML is also accepted.\n\nAdds a customer charge. A Charge contains information about a statement charge. (A CreditCardCharge object, on the other hand, refers to a credit card charge incurred by the QuickBooks user.)\n\nIntuit's reference: [ChargeAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/chargeadd).","operationId":"createCharge","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"amount":250.0,"customer_ref":{"full_name":"Acme Corp"},"item_ref":{"full_name":"Widget"},"ref_number":"1001","txn_date":"2026-01-15"},"schema":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"billed_date":{"description":"The date when the customer was billed for what is now being charged to their credit card. (`billed_date` is the same as the date listed on an invoice or, for a statement charge, the date entered in the Statement Date field when the statement was printed.)","format":"date","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"desc":{"description":"A descriptive text field.","type":"string"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["ARAccountRef","Amount","BalanceRemaining","BilledDate","ClassRef","CustomerRef","DataExtRet","Desc","DueDate","EditSequence","ExternalGUID","InventorySiteLocationRef","InventorySiteRef","IsPaid","ItemRef","LinkedTxn","ListID","OverrideUOMSetRef","OwnerID","Quantity","Rate","RefNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber","UnitOfMeasure"],"type":"string"},"type":"array"},"inventory_site_location_ref":{"description":"Location within the Inventory Site","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"option_for_price_rule_conflict":{"description":"Flag to override price rule conflict.","enum":["BasePrice","Zero"],"type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"Indicates the price of something.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["customer_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createCharge_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create charge","tags":["Charges"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateCharge_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ChargeModRq`, from qbXML 3.0. The `charge_mod` wrapper from qbXML is also accepted.\n\nSome fields in a ChargeMod request can’t be cleared. If any of the following fields is included in a charge modify request, it must contain a value:\n\n- `customer_ref`\n- `txn_date`\n- `item_ref`\n- Quantity\n- Rate\n- Amount\n- `ar_account_ref`\n- `override_item_account_ref`\n\n(For more details about what it means for a field to be clearable or not clearable, see the QB SDK Programmer’s Guide ([PDF](https://developer.intuit.com/app/developer/logged-in-content/QBSDK_ProGuide.pdf), 9.6 MB).)\n\nIntuit's reference: [ChargeMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/chargemod).","operationId":"updateCharge","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"amount":250.0,"customer_ref":{"full_name":"Acme Corp"},"edit_sequence":"1700000000","item_ref":{"full_name":"Widget"},"ref_number":"1001","txn_date":"2026-01-15","txn_id":"1A2B-1700000000"},"schema":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"billed_date":{"description":"The date when the customer was billed for what is now being charged to their credit card. (`billed_date` is the same as the date listed on an invoice or, for a statement charge, the date entered in the Statement Date field when the statement was printed.)","format":"date","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"include_ret_element":{"items":{"enum":["ARAccountRef","Amount","BalanceRemaining","BilledDate","ClassRef","CustomerRef","DataExtRet","Desc","DueDate","EditSequence","ExternalGUID","InventorySiteLocationRef","InventorySiteRef","IsPaid","ItemRef","LinkedTxn","ListID","OverrideUOMSetRef","OwnerID","Quantity","Rate","RefNumber","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber","UnitOfMeasure"],"type":"string"},"type":"array"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"option_for_price_rule_conflict":{"description":"Flag to override price rule conflict","enum":["BasePrice","Zero"],"type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"Indicates the price of something.","type":"number"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateCharge_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update charge","tags":["Charges"]}},"/connections/{connection_id}/simulator/sync":{"post":{"description":"Beta: simulated connections don't match real QuickBooks in every case yet. Runs one fake Web Connector session against this connection immediately, and waits for it -- instead of waiting for the simulator's own poll interval. It stands for a person clicking Update Selected, so QuBe lets it through even while it is spacing out scheduled runs (QuickBooks unreachable). The one exception: right after a failed session, before QuBe has told the schedule when to run again, it can't be told apart from a scheduled run and answers `result: postponed` -- run it again to go ahead.","operationId":"syncSimulator","parameters":[{"description":"The connection to act on.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"answered":{"description":"Requests answered during this session.","type":"integer"},"connection_id":{"format":"uuid","type":"string"},"errors":{"type":"integer"},"result":{"enum":["nothing_to_do","completed","connection_error","auth_failed","postponed","stalled"],"type":"string"},"retry_in":{"description":"With `result: postponed`: QuickBooks couldn't be reached on the last tries, so QuBe asked the Web Connector to wait this many seconds before its next scheduled run.","type":"integer"},"stall_reason":{"description":"With `result: stalled`: the `stalled` fault is set, so no session ran and your requests wait. The fault's reason.","enum":["not_checking_in","quickbooks_unavailable"],"type":"string"}},"type":"object"}},"type":"object"}}},"description":"One Web Connector session ran against the fake QuickBooks"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"503":{"description":"The simulator's Web Connector process isn't running"}},"security":[{"apiKey":[]}],"summary":"Run the simulator now","tags":["Connections"],"x-mint":{"metadata":{"tag":"Beta"}}}},"/connections/{connection_id}/templates":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listTemplates_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `TemplateQueryRq`, from qbXML 3.0.\n\nA template query returns the names of all templates that have been defined in QuickBooks. Templates are mainly used for specifying how to print certain transactions. The following transactions can have templates defined for them: credit memo, estimate, invoice, purchase order, sales order, sales receipt, receipt payment and bill payment customization.\n\nIntuit's reference: [TemplateQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/templatequery).","operationId":"listTemplates","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["EditSequence","IsActive","ListID","Name","TemplateType","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listTemplates_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List templates","tags":["Templates"]}},"/connections/{connection_id}/leads":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listLeads_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `LeadQueryRq`, from qbXML 13.0.\n\nIntuit's reference: [LeadQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/leadquery).","operationId":"listLeads","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `list_id` or `name` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `name`, or the set (`from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AdditionalContactRef","CompanyName","EditSequence","FullName","LeadContactsRet","ListID","LocationsRet","MainPhone","Status","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `name`, or the set (`from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `list_id`, or `name`, or the set (`from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"The string to match.\n\nChoose at most one of: `list_id`, or `name`, or the set (`from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `name`, or the set (`from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `name`, or the set (`from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `name`, or the set (`from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listLeads_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List leads","tags":["Leads"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createLead_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `LeadAddRq`, from qbXML 13.0. The `lead_add` wrapper from qbXML is also accepted.\n\nIntuit's reference: [LeadAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/leadadd).","operationId":"createLead","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"company_name":"Acme Corp","full_name":"Acme Corp"},"schema":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"required":["contact_name","contact_value"],"type":"object"},"type":"array"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"include_ret_element":{"items":{"enum":["AdditionalContactRef","CompanyName","EditSequence","ExternalGUID","FullName","LeadContactsRet","ListID","LocationsRet","MainPhone","OwnerID","Status","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"lead_contacts":{"items":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"required":["contact_name","contact_value"],"type":"object"},"type":"array"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"is_primary_contact":{"description":"Flag for if this is a primary contact on a lead.","type":"boolean"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"}},"required":["first_name"],"type":"object"},"type":"array"},"locations":{"items":{"properties":{"lead_address":{"description":"Address for the lead.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"location":{"description":"Where the asset is located or has been placed into service.","type":"string"}},"required":["location"],"type":"object"},"type":"array"},"main_phone":{"description":"The main phone number.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"status":{"description":"The status of the lead.","enum":["Cold","Hot","Warm"],"type":"string"}},"required":["full_name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createLead_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create lead","tags":["Leads"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateLead_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `LeadModRq`, from qbXML 13.0. The `lead_mod` wrapper from qbXML is also accepted.\n\nIntuit's reference: [LeadMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/leadmod).","operationId":"updateLead","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"company_name":"Acme Corp","edit_sequence":"1700000000","full_name":"Acme Corp","list_id":"80000001-1700000000"},"schema":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"required":["contact_name","contact_value"],"type":"object"},"type":"array"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"include_ret_element":{"items":{"enum":["AdditionalContactRef","CompanyName","EditSequence","ExternalGUID","FullName","LeadContactsRet","ListID","LocationsRet","MainPhone","OwnerID","Status","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"lead_contacts_mod":{"items":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"required":["contact_name","contact_value"],"type":"object"},"type":"array"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"is_primary_contact":{"description":"Flag for if this is a primary contact on a lead.","type":"boolean"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"lead_contact_id":{"description":"`lead_contact_id` is a way to identify a lead contact object. When a lead contact object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a `lead_contact_id`.","type":"integer"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"}},"required":["first_name"],"type":"object"},"type":"array"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"locations_mod":{"items":{"properties":{"lead_address":{"description":"Address for the lead.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"}},"type":"object"},"location":{"description":"Where the asset is located or has been placed into service.","type":"string"},"location_id":{"description":"`location_id` is a way to identify a location object. When a location object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a `location_id`.","type":"integer"}},"required":["location","location_id"],"type":"object"},"type":"array"},"main_phone":{"description":"The main phone number.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"status":{"description":"The status of the lead.","enum":["Cold","Hot","Warm"],"type":"string"}},"required":["edit_sequence","full_name","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateLead_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update lead","tags":["Leads"]}},"/connections/{connection_id}/item-sites":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listItemSites_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemSitesQueryRq`, from qbXML 10.0.\n\nIntuit's reference: [ItemSitesQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemsitesquery).","operationId":"listItemSites","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer).","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AssemblyBuildPoint","EditSequence","InventorySiteLocationRef","InventorySiteRef","ItemInventoryAssemblyRef","ItemInventoryRef","ListID","QuantityOnHand","QuantityOnPendingTransfers","QuantityOnPurchaseOrders","QuantityOnSalesOrders","QuantityRequiredByPendingBuildTxns","QuantityToBeBuiltByPendingBuildTxns","ReorderLevel","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"Allows you to report on Item Sites.\n\nChoose at most one of: `list_id`, or the set (`item_site_filter`, `item_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"item_site_filter","required":false,"schema":{"properties":{"item_filter":{"description":"Filters according to the item name or ID. You can use an ItemQuery request to get information about all the items that are set up in the QuickBooks file. “Items” are line items used for fast entry on sales and purchase forms. They include services and goods that a business buys and sells, as well as special items that perform calculations–for example, subtotal, discount, and sales-tax items.","oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"},"site_filter":{"description":"Allows you to report on Sites.","oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},"type":"object"}},{"description":"Allows you to report on a specific item type.\n\nChoose at most one of: `list_id`, or the set (`item_site_filter`, `item_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"item_type_filter","required":false,"schema":{"enum":["AllExceptFixedAsset","Assembly","Discount","FixedAsset","Inventory","InventoryAndAssembly","NonInventory","OtherCharge","Payment","Sales","SalesTax","Service"],"type":"string"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or the set (`item_site_filter`, `item_type_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listItemSites_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List item sites","tags":["Item Sites"]}},"/connections/{connection_id}/payments":{"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/recordPayment_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ReceivePaymentAddRq`, from qbXML 1.1. The `receive_payment_add` wrapper from qbXML is also accepted.\n\nRecords a customer's payment. Set `customer_ref`, `total_amount` and either `is_auto_apply` (true: to an invoice of that exact amount, else the oldest; false: to none) or `applied_to_txn_add`: each invoice's `txn_id` and amount, at most what it owes (more fails with 3210 `invalid_value`); the rest is unused_payment. A line can also apply a credit memo (`set_credit`); a `total_amount` of 0 that only does that creates no payment and answers just each invoice's txn_id and txn_type. Without `ref_number` a payment gets no number; without `deposit_to_account_ref` it goes to Undeposited Funds.\n\n1. To record a customer’s payment against an invoice for one or more jobs,\n2. To set a discount (for early payment, for example),\n3. To set a credit (from previously returned merchandise, for example).\n\nIf full payment is received at the time of sale, it is recorded using a sales receipt transaction, not a receive payments transaction.\n\nNotice that access to sensitive data permissions aren’t required to use this request. However, if the application doesn’t have access to sensitive data permission, then the response returned won’t contain certain sensitive data. For example, even if credit card data is supplied in the ReceivePaymentAdd request via the `credit_card_txn_info` aggregate, the response won’t contain the corresponding aggregate.\n\nThis request can be used to record QBMS credit card transaction data, via the `credit_card_txn_info` aggregate. You can record charges and also authorizations. (You can later respond to a QBMS capture of authorized charges by doing a ReceivePaymentMod and changing the `credit_card_txn_type` to “Charge”.)\n\nIntuit's reference, linked below, has the rest of these notes.\n\nIntuit's reference: [ReceivePaymentAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/receivepaymentadd).","operationId":"recordPayment","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"customer_ref":{"full_name":"Acme Corp"},"is_auto_apply":true,"memo":"Monthly service","ref_number":"1001","total_amount":250.0,"txn_date":"2026-01-15"},"schema":{"oneOf":[{"properties":{"is_auto_apply":{"description":"If `is_auto_apply` is true, QuickBooks applies `total_amount` to any outstanding transaction that exactly matches `total_amount`. If no exact match is found, the payment is applied to the customer job’s outstanding transactions, beginning with the oldest one. If `is_auto_apply` is false, QuickBooks receives the payment but doesn’t apply it to any outstanding transaction.","type":"boolean"}},"required":["is_auto_apply"],"title":"IsAutoApply","type":"object"},{"properties":{"applied_to_txn_add":{"items":{"properties":{"discount_account_ref":{"description":"Refers to the account where this discount is tracked. In a request, if a `discount_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"discount_amount":{"description":"Reduces the receivable amount.","type":"number"},"discount_class_ref":{"description":"Class reference used in the Discount object.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"payment_amount":{"description":"Represents the amount assigned to a particular receivable. The sum of all `payment_amount` elements in any given receive payment transaction must not be greater than `total_amount`.","type":"number"},"set_credit":{"items":{"properties":{"applied_amount":{"description":"Amount of a credit that is applied to a customer’s invoice, or amount of a payment that is applied to a particular bill or vendor credit.","type":"number"},"credit_txn_id":{"description":"The ID of the credit memo that you are applying to this invoice or bill.","type":"string"},"override":{"description":"Option to override credit.","type":"boolean"},"txn_line_id":{"type":"string"}},"required":["applied_amount","credit_txn_id"],"type":"object"},"type":"array"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_detail":{"items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"txn_line_id":{"type":"string"}},"required":["amount","txn_line_id"],"type":"object"},"type":"array"}},"required":["txn_id"],"type":"object"},"type":"array"}},"required":["applied_to_txn_add"],"title":"AppliedToTxnAdd","type":"object"}],"properties":{"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"required":["credit_card_number","expiration_month","expiration_year","name_on_card"],"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"required":["credit_card_trans_id","merchant_account_number","payment_status","result_code","result_message","txn_authorization_time"],"type":"object"}},"required":["credit_card_txn_input_info","credit_card_txn_result_info"],"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"deposit_to_account_ref":{"description":"Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["ARAccountRef","AppliedToTxnRet","CreditCardTxnInfo","CurrencyRef","CustomerRef","DataExtRet","DepositToAccountRef","EditSequence","ExchangeRate","ExternalGUID","ListID","Memo","OwnerID","PaymentMethodRef","RefNumber","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber","UnusedCredits","UnusedPayment"],"type":"string"},"type":"array"},"memo":{"description":"The beginning of this memo will appear in reports that show details of this receive payment.","type":"string"},"payment_method_ref":{"description":"`payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"total_amount":{"description":"Total amount of money received. For ReceivePaymentAdd, the sum of the `payment_amount` amounts (in the `applied_to_txn_add` aggregates that are included) can’t be greater than the `total_amount`, or you will receive an error.","type":"number"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"}},"required":["customer_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/recordPayment_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Record payment","tags":["Payments"]}},"/connections/{connection_id}/txns":{"delete":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/deleteTxn_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `TxnDelRq`, from qbXML 1.1.\n\nDeleting a transaction removes it completely and irreversibly. (Using a TxnVoid request to void a transaction, on the other hand, sets its amount to zero but keeps a record of it in QuickBooks.)\n\nIf you try to delete or void a transaction while it is in use, you will get an error. You will also get an error if you try to delete or void a transaction (say a sales receipt) while a linked transaction (such as a deposit) is in use. If you try to delete or void a transaction that was created before the company’s closing date, you might or might not get an error, depending on the permissions and passwords that are set in QuickBooks.\n\nThe mode in which a QuickBooks company file is open (single-user or multiuser) doesn’t impact your application’s ability to delete transaction objects from it. (List objects can only be deleted if the company file is open in single-user mode.)\n\nIntuit's reference: [TxnDel](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/txndel).","operationId":"deleteTxn","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"txn_del_type":"Invoice","txn_id":"1A2B-1700000000"},"schema":{"properties":{"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_del_type":{"description":"The type of transaction to be deleted.","enum":["ARRefundCreditCard","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","TimeTracking","TransferInventory","VehicleMileage","VendorCredit"],"type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_del_type","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/deleteTxn_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Delete txn","tags":["Txns"]}},"/connections/{connection_id}/employee-defaults":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listEmployeeDefaults_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `EmployeeDefaultQueryRq`.\n\nIntuit's reference: [EmployeeDefaultQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/employeedefaultquery).","operationId":"listEmployeeDefaults","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["EmployeeDefaultPayrollInfo"],"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listEmployeeDefaults_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List employee defaults","tags":["Employee Defaults"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateEmployeeDefault_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `EmployeeDefaultModRq`. The `employee_default_mod` wrapper from qbXML is also accepted.\n\nIntuit's reference: [EmployeeDefaultMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/employeedefaultmod).","operationId":"updateEmployeeDefault","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"employee_default_payroll_info_mod":{"is_covered_by_qualified_pension_plan":true}},"schema":{"properties":{"employee_default_payroll_info_mod":{"not":{"anyOf":[{"required":["clear_earnings","earnings"]},{"required":["clear_non_earnings","non_earnings"]}]},"properties":{"class_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"clear_earnings":{"description":"Choose at most one of: `clear_earnings`, or `earnings`.","type":"boolean"},"clear_non_earnings":{"description":"Choose at most one of: `clear_non_earnings`, or `non_earnings`.","type":"boolean"},"earnings":{"description":"Choose at most one of: `clear_earnings`, or `earnings`.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"payroll_item_wage_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"}},"required":["payroll_item_wage_ref"],"type":"object"},"type":"array"},"employee_tax_info":{"properties":{"employee_tax":{"items":{"properties":{"is_subject_to_tax":{"type":"boolean"},"payroll_item_tax_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"tax_info":{"items":{"properties":{"tax_info_category":{"type":"string"},"tax_info_value":{"type":"string"}},"required":["tax_info_category","tax_info_value"],"type":"object"},"type":"array"},"tax_law_version":{"type":"integer"}},"required":["payroll_item_tax_ref"],"type":"object"},"type":"array"},"is_standard_taxation_required":{"type":"boolean"},"state_lived":{"type":"string"},"state_worked":{"type":"string"}},"type":"object"},"is_covered_by_qualified_pension_plan":{"type":"boolean"},"non_earnings":{"description":"Choose at most one of: `clear_non_earnings`, or `non_earnings`.","items":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"amount":{"description":"Choose at most one of: `amount`, or `rate_percent`.","type":"number"},"limit":{"type":"number"},"payroll_item_non_wage_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"rate_percent":{"description":"Choose at most one of: `amount`, or `rate_percent`.","type":"number"}},"required":["payroll_item_non_wage_ref"],"type":"object"},"type":"array"},"pay_period":{"enum":["Biweekly","Daily","Monthly","Quarterly","Semimonthly","Weekly","Yearly"],"type":"string"},"sick_hours_default":{"properties":{"accrual_period":{"enum":["BeginningOfYear","EveryHourOnPaycheck","EveryPaycheck"],"type":"string"},"hours_accrued":{"type":"string"},"is_resetting_hours_each_new_year":{"type":"boolean"},"maximum_hours":{"type":"string"}},"type":"object"},"use_time_data_to_create_paychecks":{"enum":["DoNotUseTimeData","NotSet","UseTimeData"],"type":"string"},"vacation_hours_default":{"properties":{"accrual_period":{"enum":["BeginningOfYear","EveryHourOnPaycheck","EveryPaycheck"],"type":"string"},"hours_accrued":{"type":"string"},"is_resetting_hours_each_new_year":{"type":"boolean"},"maximum_hours":{"type":"string"}},"type":"object"}},"type":"object"},"include_ret_element":{"items":{"enum":["EmployeeDefaultPayrollInfo"],"type":"string"},"type":"array"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateEmployeeDefault_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update employee default","tags":["Employee Defaults"]}},"/connections/{connection_id}/form1099-category-account-mappings":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listForm1099CategoryAccountMappings_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `Form1099CategoryAccountMappingQueryRq`, from qbXML 8.0.\n\nReturns one Ret object that contains a list of all of the account mappings currently in effect for Form 1099-NEC and Form 1099-MISC. You can optionally supply a Box number (representing the corresponding text box in the 1099 forms) if you only want the mappings for a particular box in the form. Using SDK version 15 or older won’t yield correct category account mappings in the response.\n\nIntuit's reference: [Form1099CategoryAccountMappingQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/form1099categoryaccountmappingquery).","operationId":"listForm1099CategoryAccountMappings","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Added a form type to support Form 1099-NEC and Form 1099-MISC. `form_type` is a property to identify the type of form (MISC/NEC) for which Form1099CategoryAccountMapping query is run. Form type will be MISC if no `form_type` is specified.","in":"query","name":"form_type","required":false,"schema":{"type":"string"}},{"description":"A mapping category indicates the form 1099 box that one or more accounts is being mapped to. You must specify one of the following enumerated values based on the form type:","in":"query","name":"mapping_category","required":false,"schema":{"items":{"enum":["BOX1","BOX10","BOX13","BOX14","BOX2","BOX3","BOX4","BOX5","BOX6","BOX7","BOX8","BOX9"],"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listForm1099CategoryAccountMappings_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List form1099 category account mappings","tags":["Form1099 Category Account Mappings"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateForm1099CategoryAccountMapping_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `Form1099CategoryAccountMappingModRq`, from qbXML 8.0. The `form1099_category_account_mapping_mod` wrapper from qbXML is also accepted.\n\nThis request is used to specify how the QuickBooks company file tracks payments subject to 1099-MISC and 1099-NEC. You can use it to specify one or more accounts for each of the 1099 categories.\n\nWhen you use this request on a company file that already has accounts specified for the category(s) you are changing, this request replaces that previous mapping with your new mapping.\n\nYou can specify more than one account for a specific category, but once you specify an account for one category, you can’t specify that same account for another category. Also, when you specify accounts, you must specify accounts of one of the following types: expense, other expense, other current asset, fixed asset, other asset, other current liability, cost of goods sold, and long-term liability.\n\nFor more information on using this feature, see QuickBooks Help.\n\nIntuit's reference: [Form1099CategoryAccountMappingMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/form1099categoryaccountmappingmod).","operationId":"updateForm1099CategoryAccountMapping","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"is_filing1099_misc":true},"schema":{"properties":{"category_account_mapping_mod":{"items":{"properties":{"mapping_account":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"force_mapping":{"description":"In some circumstances, changing the account mapping could result in the displaying of a user dialog in the QuickBooks UI prompting the user to confirm, which would prevent the SDK request from completing. Setting this property to true causes that user dialog to be suppressed.","type":"boolean"}},"required":["account_ref"],"type":"object"},"type":"array"},"mapping_category":{"description":"A mapping category indicates the form 1099 box that one or more accounts is being mapped to. You must specify one of the following enumerated values based on the form type:","enum":["BOX1","BOX10","BOX13","BOX14","BOX2","BOX3","BOX4","BOX5","BOX6","BOX7","BOX8","BOX9"],"type":"string"},"threshold":{"description":"This is the dollar amount at which the IRS requires you to file the 1099-MISC and 1099-NEC forms. Each box (“Category” in SDK lingo) can have a separate threshold, as established by the IRS. For the latest thresholds, check the website for the Internal Revenue Service, currently at www.irs.gov.","type":"number"}},"required":["mapping_category"],"type":"object"},"type":"array"},"is_filing1099_misc":{"description":"This property reports only (it doesn’t set!) the current status of 1099 preferences setting in the company file. The value true indicates that the company file currently has the 1099 filing preference turned on. The value false indicates that the company file isn’t currently set to file 1099-MISC and 1099-NEC forms.","type":"boolean"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateForm1099CategoryAccountMapping_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update form1099 category account mapping","tags":["Form1099 Category Account Mappings"]}},"/connections/{connection_id}/receive-payment-to-deposits":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listReceivePaymentToDeposits_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ReceivePaymentToDepositQueryRq`, from qbXML 2.0.\n\nThis query returns information about payments that have been received and are ready to deposit. You can use any returned `txn_id` and `txn_line_id` elements as PaymentTxnID and PaymentTxnLineID elements in subsequent DespositAdd requests. Note: If you include an explicit end tag in a ReceivePaymentToDepositQuery request, you will receive an error if there is any space between the opening tag and the end tag. The following table shows valid and invalid ways of constructing this request:\n\n- Valid (no space between opening and closing tags)\n- Valid (combined opening and closing tag)\n- Invalid (space between opening and closing tags)\n\nIntuit's reference: [ReceivePaymentToDepositQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/receivepaymenttodepositquery).","operationId":"listReceivePaymentToDeposits","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["Amount","AmountInHomeCurrency","CurrencyRef","CustomerRef","ExchangeRate","RefNumber","TxnDate","TxnID","TxnLineID","TxnType"],"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listReceivePaymentToDeposits_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List receive payment to deposits","tags":["Receive Payment To Deposits"]}},"/connections/{connection_id}/currencies":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listCurrencies_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CurrencyQueryRq`, from qbXML 8.0.\n\nReturns the list of built-in and user-defined currency objects that match the filters used in the request.\n\nIntuit's reference: [CurrencyQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/currencyquery).","operationId":"listCurrencies","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AsOfDate","CurrencyCode","CurrencyFormat","EditSequence","ExchangeRate","IsActive","IsUserDefinedCurrency","ListID","Name","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listCurrencies_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List currencies","tags":["Currencies"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createCurrency_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CurrencyAddRq`, from qbXML 8.0. The `currency_add` wrapper from qbXML is also accepted.\n\nCreates a user defined currency with the specified name and currency code, both of which will show up in the QuickBooks UI.\n\nCurrencies created by users, whether via the UI or via SDK using this request, are distinguished from the built-in QB currencies in the Currency Ret object: they are identified as user defined. User defined currencies don’t get their exchange rates updated automatically by QuickBooks via the Download Current Exchange Rates feature. You’ll always need to manually update the exchange rates. However, other than this, these type of currencies function within QB in the same way as the built-in currencies.\n\nIf you haven’t used a user defined currency in a transaction, you can delete it using ListDel. You can’t delete the built-in QB currencies.\n\nIntuit's reference: [CurrencyAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/currencyadd).","operationId":"createCurrency","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"currency_code":"EUR","name":"Euro"},"schema":{"properties":{"currency_code":{"description":"For built-in currencies, the currency code and name is the generally accepted code and name. These are based on the standard ISO 4217 code/name for a country’s currency. In most cases, the currency code is composed of the country’s two-character Internet country code plus an extra character representing the currency unit.","type":"string"},"currency_format":{"description":"The aggregate controlling the appearance of the currency with regard to comma and decimal.","properties":{"decimal_places":{"description":"This enumerated value controls the display of the decimal value, for example, 1.00. The default is 2 which means 2 decimals are displayed to the right of the decimal point, but you can specify 0 (zero) if you don’t want’ decimals to be displayed.","enum":["0","2"],"type":"string"},"decimal_separator":{"description":"This enumerated value controls the display of the decimal point, for example, 1.00 or 1,00. The default is Period but you could alternatively specify a value of Comma.","enum":["Comma","Period"],"type":"string"},"thousand_separator":{"description":"This enumerated value controls how the thousandth’s place is separated from the next thousand, for example, 1,000,000. The default is Comma, as shown, but you can replace this with one of these values: Period, Space, Apostrophe .","enum":["Apostrophe","Comma","Period","Space"],"type":"string"},"thousand_separator_grouping":{"description":"This enumerated value controls how the display of the currency value is grouped, for example, 10,000,000. The default is XX_XXX_XXX but you could replace this with X_XX_XX_XXX","enum":["XX_XXX_XXX","X_XX_XX_XXX"],"type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["AsOfDate","CurrencyCode","CurrencyFormat","EditSequence","ExchangeRate","ExternalGUID","IsActive","IsUserDefinedCurrency","ListID","Name","OwnerID","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["currency_code","name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createCurrency_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create currency","tags":["Currencies"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateCurrency_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CurrencyModRq`, from qbXML 8.0. The `currency_mod` wrapper from qbXML is also accepted.\n\nThis request is used primarily for changing the `is_active` status of the built-in QuickBooks currencies. However, it can also be used to modify anything in user-defined currencies. When used on a built-in currency, this request can’t modify name or currency code, neither of which can be modified in the UI either.\n\nIntuit's reference: [CurrencyMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/currencymod).","operationId":"updateCurrency","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Euro"},"schema":{"properties":{"currency_code":{"description":"For built-in currencies, the currency code and name is the generally accepted code and name. These are based on the standard ISO 4217 code/name for a country’s currency. In most cases, the currency code is composed of the country’s two-character Internet country code plus an extra character representing the currency unit.","type":"string"},"currency_format":{"description":"The aggregate controlling the appearance of the currency with regard to comma and decimal.","properties":{"decimal_places":{"description":"This enumerated value controls the display of the decimal value, for example, 1.00. The default is 2 which means 2 decimals are displayed to the right of the decimal point, but you can specify 0 (zero) if you don’t want’ decimals to be displayed.","enum":["0","2"],"type":"string"},"decimal_separator":{"description":"This enumerated value controls the display of the decimal point, for example, 1.00 or 1,00. The default is Period but you could alternatively specify a value of Comma.","enum":["Comma","Period"],"type":"string"},"thousand_separator":{"description":"This enumerated value controls how the thousandth’s place is separated from the next thousand, for example, 1,000,000. The default is Comma, as shown, but you can replace this with one of these values: Period, Space, Apostrophe .","enum":["Apostrophe","Comma","Period","Space"],"type":"string"},"thousand_separator_grouping":{"description":"This enumerated value controls how the display of the currency value is grouped, for example, 10,000,000. The default is XX_XXX_XXX but you could replace this with X_XX_XX_XXX","enum":["XX_XXX_XXX","X_XX_XX_XXX"],"type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"include_ret_element":{"items":{"enum":["AsOfDate","CurrencyCode","CurrencyFormat","EditSequence","ExchangeRate","ExternalGUID","IsActive","IsUserDefinedCurrency","ListID","Name","OwnerID","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateCurrency_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update currency","tags":["Currencies"]}},"/connections/{connection_id}/special-items":{"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createSpecialItem_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SpecialItemAddRq`, from qbXML 6.0. The `special_item_add` wrapper from qbXML is also accepted.\n\nAdds special items to QuickBooks that can’t be added via the other Item\\*Add requests.\n\nIntuit's reference: [SpecialItemAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/specialitemadd).","operationId":"createSpecialItem","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"special_item_type":"FinanceCharge"},"schema":{"properties":{"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["BarCodeValue","ClassRef","DataExtRet","EditSequence","ExternalGUID","FullName","IsActive","IsPrintItemsInGroup","IsTaxIncluded","ItemDesc","ItemGroupLine","ListID","Name","ParentRef","SalesAndPurchase","SalesOrPurchase","SalesTaxCodeRef","SpecialItemType","Sublevel","TimeCreated","TimeModified","UnitOfMeasureSetRef"],"type":"string"},"type":"array"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"special_item_type":{"description":"Identifies the type of special item. See type for possible enum values.","enum":["FinanceCharge","ReimbursableExpenseGroup","ReimbursableExpenseSubtotal"],"type":"string"}},"required":["special_item_type"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createSpecialItem_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create special item","tags":["Special Items"]}},"/connections/{connection_id}/payroll-year-to-date-adjustments":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listPayrollYearToDateAdjustments_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollYearToDateAdjustmentQueryRq`.\n\nIntuit's reference: [PayrollYearToDateAdjustmentQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollyeartodateadjustmentquery).","operationId":"listPayrollYearToDateAdjustments","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AccountRef","Amount","ClassRef","EditSequence","EmployeeRef","IsAffectingAccounts","Memo","PayPeriodBeginDate","PayPeriodEndDate","PayrollDate","PayrollYearToDateAdjustmentLineRet","RefNumber","TaxTableVersion","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"QuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"format":"date-time","type":"string"},"to_modified_date":{"format":"date-time","type":"string"}},"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"payroll_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_payroll_date":false,"to_payroll_date":false}},"properties":{"from_payroll_date":{"format":"date","type":"string"},"to_payroll_date":{"format":"date","type":"string"}},"title":"FromPayrollDate + ToPayrollDate","type":"object"},{"properties":{"date_macro":{"enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"type":"string"},"to_ref_number":{"type":"string"}},"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"format":"date","type":"string"},"to_txn_date":{"format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listPayrollYearToDateAdjustments_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List payroll year to date adjustments","tags":["Payroll Year To Date Adjustments"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createPayrollYearToDateAdjustment_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollYearToDateAdjustmentAddRq`. The `payroll_year_to_date_adjustment_add` wrapper from qbXML is also accepted.\n\nIntuit's reference: [PayrollYearToDateAdjustmentAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollyeartodateadjustmentadd).","operationId":"createPayrollYearToDateAdjustment","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"employee_ref":{"full_name":"Jane Doe"},"is_affecting_accounts":true,"memo":"Monthly service","payroll_year_to_date_adjustment_line_add":[{"account_ref":{"full_name":"Office Supplies"},"amount":250.0,"memo":"Monthly service"}],"ref_number":"1001","txn_date":"2026-01-15"},"schema":{"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"class_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"def_macro":{"type":"string"},"employee_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["AccountRef","Amount","ClassRef","EditSequence","EmployeeRef","IsAffectingAccounts","Memo","PayPeriodBeginDate","PayPeriodEndDate","PayrollDate","PayrollYearToDateAdjustmentLineRet","RefNumber","TaxTableVersion","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_affecting_accounts":{"type":"boolean"},"memo":{"type":"string"},"pay_period_begin_date":{"format":"date","type":"string"},"pay_period_end_date":{"format":"date","type":"string"},"payroll_date":{"format":"date","type":"string"},"payroll_year_to_date_adjustment_line_add":{"items":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"amount":{"type":"number"},"calculated_amount":{"type":"number"},"class_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"company_paid_attribute":{"enum":["IsExpense","IsLiability","IsLiabilityAndExpense","NotApplicable"],"type":"string"},"experience_mod_rate_amount":{"type":"number"},"hours_worked":{"type":"string"},"income_subject_to_tax_amount":{"type":"number"},"is_amount_overridden":{"type":"boolean"},"memo":{"type":"string"},"other_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"wage_base_amount":{"type":"number"},"workers_comp_amount":{"type":"number"},"workers_comp_code_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"ref_number":{"type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"tax_table_version":{"type":"integer"},"txn_date":{"format":"date","type":"string"}},"required":["employee_ref","is_affecting_accounts","payroll_year_to_date_adjustment_line_add"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createPayrollYearToDateAdjustment_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create payroll year to date adjustment","tags":["Payroll Year To Date Adjustments"]}},"/connections/{connection_id}/unit-of-measure-sets":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listUnitOfMeasureSets_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `UnitOfMeasureSetQueryRq`, from qbXML 7.0.\n\nQueries for the UOM sets specified in the filters used.\n\nIntuit's reference: [UnitOfMeasureSetQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/unitofmeasuresetquery).","operationId":"listUnitOfMeasureSets","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["BaseUnit","DefaultUnit","EditSequence","IsActive","ListID","Name","RelatedUnit","TimeCreated","TimeModified","UnitOfMeasureType"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listUnitOfMeasureSets_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List unit of measure sets","tags":["Unit Of Measure Sets"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createUnitOfMeasureSet_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `UnitOfMeasureSetAddRq`, from qbXML 7.0. The `unit_of_measure_set_add` wrapper from qbXML is also accepted.\n\nRequires the company to be enabled for unit of measure (UOM), either a single unit of measure per item, or multiple units of measure. However, in order to support both single or multiple units per item of measure enablement, you must prefix all UOM set names with “By the”, for example, “By the Barrel”. Otherwise, the UOM set won’t show up in the QuickBooks UI in single UOM per item mode.\n\nIntuit's reference: [UnitOfMeasureSetAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/unitofmeasuresetadd).","operationId":"createUnitOfMeasureSet","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"base_unit":{"abbreviation":"ea","name":"Each"},"name":"Count","unit_of_measure_type":"Count"},"schema":{"properties":{"base_unit":{"description":"The unit of measure in a unit of measure set by which quantities of an item are tracked, priced, etc. If the company file is enabled for single unit of measure per item, the base unit is the only unit that is available for transaction line items.","properties":{"abbreviation":{"description":"The is the short “identifier” for a unit of measure that shows up in transaction line items in the U/M field in the QuickBooks UI.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"}},"required":["abbreviation","name"],"type":"object"},"default_unit":{"items":{"properties":{"unit":{"description":"In a related unit within a unit of measure set, the name you want the unit to have. This name is displayed in the QuickBooks as an available unit for the item, if the company is enabled for multiple units of measure per item.","type":"string"},"unit_used_for":{"description":"In a default unit of measure, this specifies whether the default is to be used for purchase line items, sales line items, or shipping lines.","enum":["Purchase","Sales","Shipping"],"type":"string"}},"required":["unit","unit_used_for"],"type":"object"},"type":"array"},"include_ret_element":{"items":{"enum":["BaseUnit","DefaultUnit","EditSequence","ExternalGUID","IsActive","ListID","Name","OwnerID","RelatedUnit","TimeCreated","TimeModified","TxnID","TxnNumber","UnitOfMeasureType"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"related_unit":{"items":{"properties":{"abbreviation":{"description":"The is the short “identifier” for a unit of measure that shows up in transaction line items in the U/M field in the QuickBooks UI.","type":"string"},"conversion_ratio":{"description":"Within a unit of measure set, in any of the related units in that set, this indicates how many base units are in the related unit. That is, if the base unit is “box”, and the related unit is “case” with a conversion ratio of 10, that means there are 10 boxes in a case.","type":"number"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"}},"required":["abbreviation","conversion_ratio","name"],"type":"object"},"type":"array"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"unit_of_measure_type":{"description":"The type of the unit of measure. This can be one of the values you see in the QuickBooks UI when you create a new UOM set, such as Count, or it can be your own value, which in the UI you can specify by selecting “Other” then defining it.","enum":["Area","Count","Length","Other","Time","Volume","Weight"],"type":"string"}},"required":["base_unit","name","unit_of_measure_type"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createUnitOfMeasureSet_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create unit of measure set","tags":["Unit Of Measure Sets"]}},"/connections/{connection_id}/classes":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listClasses_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ClassQueryRq`.\n\nQueries for existing classes.\n\nIntuit's reference: [ClassQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/classquery).","operationId":"listClasses","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["EditSequence","FullName","IsActive","ListID","Name","ParentRef","Sublevel","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listClasses_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List classes","tags":["Classes"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createClass_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ClassAddRq`. The `class_add` wrapper from qbXML is also accepted.\n\nClasses can be used to separate transactions into meaningful categories. (For example, transactions could be classified according to department, business location, or type of work.) In QuickBooks, class tracking is off by default.\n\nIntuit's reference: [ClassAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/classadd).","operationId":"createClass","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"Retail"},"schema":{"properties":{"include_ret_element":{"items":{"enum":["EditSequence","ExternalGUID","FullName","IsActive","ListID","Name","OwnerID","ParentRef","Sublevel","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"name":{"description":"The case-insensitive name of the class, not including the names of its ancestors.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createClass_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create class","tags":["Classes"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateClass_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ClassModRq`, from qbXML 8.0. The `class_mod` wrapper from qbXML is also accepted.\n\nModifies the specified class.\n\nIntuit's reference: [ClassMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/classmod).","operationId":"updateClass","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Retail"},"schema":{"properties":{"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"include_ret_element":{"items":{"enum":["EditSequence","ExternalGUID","FullName","IsActive","ListID","Name","OwnerID","ParentRef","Sublevel","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"The case-insensitive name of the class, not including the names of its ancestors.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateClass_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update class","tags":["Classes"]}},"/connections/{connection_id}/payroll-item-wages":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listPayrollItemWages_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollItemWageQueryRq`.\n\nQueries for the specified payroll wage item or set of items.\n\nIntuit's reference: [PayrollItemWageQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollitemwagequery).","operationId":"listPayrollItemWages","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["EditSequence","ExpenseAccountRef","IsActive","ListID","Name","OvertimeMultiplier","PayrollItemDetailTypeValue","Rate","RatePercent","TimeCreated","TimeModified","WageType"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listPayrollItemWages_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List payroll item wages","tags":["Payroll Item Wages"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createPayrollItemWage_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollItemWageAddRq`, from qbXML 2.0. The `payroll_item_wage_add` wrapper from qbXML is also accepted.\n\nAdds a payroll wage item. Each payroll wage item describes and names a payment scheme, for example, Regular Pay or Overtime Pay. A PayrollItemWageRef aggregate refers to one of these wage items. In a request, if a PayrollItemWageRef aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.\n\nWithin QuickBooks, a timesheet can specify a payroll wage item only if the following criteria are met:\n\n- The name on the timesheet (which corresponds to the EntityRef in the TimeTracking object) is on the QuickBooks Employee list, and\n- The “Use time data to create paychecks” preference is turned on in the QuickBooks Payroll Info window that provides detailed employee information employee.\n\nIntuit's reference: [PayrollItemWageAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollitemwageadd).","operationId":"createPayrollItemWage","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"expense_account_ref":{"full_name":"Payroll Expenses"},"name":"Hourly Wage","wage_type":"HourlyRegular"},"schema":{"properties":{"expense_account_ref":{"description":"Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["EditSequence","ExpenseAccountRef","IsActive","ListID","Name","OvertimeMultiplier","PayrollItemDetailTypeValue","Rate","RatePercent","TimeCreated","TimeModified","WageType"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"name":{"description":"Description of the wage: for example, Regular Pay or Overtime Pay.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"wage_type":{"description":"The type of pay.","enum":["Bonus","Commission","HourlyOvertime","HourlyRegular","HourlySick","HourlyVacation","SalaryRegular","SalarySick","SalaryVacation"],"type":"string"}},"required":["expense_account_ref","name","wage_type"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createPayrollItemWage_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create payroll item wage","tags":["Payroll Item Wages"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updatePayrollItemWage_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollItemWageModRq`. The `payroll_item_wage_mod` wrapper from qbXML is also accepted.\n\nIntuit's reference: [PayrollItemWageMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollitemwagemod).","operationId":"updatePayrollItemWage","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Hourly Wage"},"schema":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"edit_sequence":{"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["EditSequence","ExpenseAccountRef","IsActive","ListID","Name","OvertimeMultiplier","PayrollItemDetailTypeValue","Rate","RatePercent","TimeCreated","TimeModified","WageType"],"type":"string"},"type":"array"},"is_active":{"type":"boolean"},"list_id":{"type":"string"},"name":{"type":"string"},"overtime_multiplier":{"type":"number"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updatePayrollItemWage_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update payroll item wage","tags":["Payroll Item Wages"]}},"/workflows/{key}/publish":{"post":{"description":"Snapshots the working copy as the next version and points the workflow at it. Refused while a workflow it calls is still a draft, or while one of its workflow states has not been given an input that workflow requires.","parameters":[{"description":"The workflow's stable key","in":"path","name":"key","required":true,"schema":{"pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"notes":{"description":"A note recorded in the history beside this version.","type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Workflow"}},"type":"object"}}},"description":"The workflow, now published"},"422":{"description":"A workflow it calls is not published, or an input it requires was not given"}},"security":[{"apiKey":[]}],"summary":"Publish the working copy","tags":["Workflows"]}},"/connections/{connection_id}/inventory-sites":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listInventorySites_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `InventorySiteQueryRq`, from qbXML 10.0.\n\nIntuit's reference: [InventorySiteQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/inventorysitequery).","operationId":"listInventorySites","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["Contact","EditSequence","Email","Fax","IsActive","IsDefaultSite","ListID","Name","ParentSiteRef","Phone","SiteAddress","SiteAddressBlock","SiteDesc","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listInventorySites_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List inventory sites","tags":["Inventory Sites"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createInventorySite_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `InventorySiteAddRq`, from qbXML 10.0. The `inventory_site_add` wrapper from qbXML is also accepted.\n\nIntuit's reference: [InventorySiteAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/inventorysiteadd).","operationId":"createInventorySite","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"email":"billing@acme.example","name":"Main Warehouse","phone":"555-0100"},"schema":{"properties":{"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"email":{"description":"E-mail address.","type":"string"},"fax":{"description":"Fax number.","type":"string"},"include_ret_element":{"items":{"enum":["Contact","EditSequence","Email","ExternalGUID","Fax","IsActive","IsDefaultSite","ListID","Name","OwnerID","ParentSiteRef","Phone","SiteAddress","SiteAddressBlock","SiteDesc","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_site_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a ParentRef aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"phone":{"description":"The telephone number.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"site_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in ShipAddressBlock or BillAddressBlock.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"site_desc":{"description":"Description of the site.","type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createInventorySite_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create inventory site","tags":["Inventory Sites"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateInventorySite_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `InventorySiteModRq`, from qbXML 10.0. The `inventory_site_mod` wrapper from qbXML is also accepted.\n\nIntuit's reference: [InventorySiteMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/inventorysitemod).","operationId":"updateInventorySite","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","email":"billing@acme.example","list_id":"80000001-1700000000","name":"Main Warehouse","phone":"555-0100"},"schema":{"properties":{"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"email":{"description":"E-mail address.","type":"string"},"fax":{"description":"Fax number.","type":"string"},"include_ret_element":{"items":{"enum":["Contact","EditSequence","Email","ExternalGUID","Fax","IsActive","IsDefaultSite","ListID","Name","OwnerID","ParentSiteRef","Phone","SiteAddress","SiteAddressBlock","SiteDesc","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_site_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a ParentRef aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"phone":{"description":"The telephone number.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"site_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in ShipAddressBlock or BillAddressBlock.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"site_desc":{"description":"Description of the site.","type":"string"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateInventorySite_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update inventory site","tags":["Inventory Sites"]}},"/connections/{connection_id}/credit-memos":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listCreditMemos_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CreditMemoQueryRq`.\n\nFinds credit memos: exact ones by `txn_id` or `ref_number`, or a filtered set by customer (`entity_filter`), date or account. Lines come back only with `include_line_items`, and the invoices each credit was applied to (not the payments that applied it) only with `include_linked_txns`. Set `iterator` to page through many results.\n\nIntuit's reference: [CreditMemoQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/creditmemoquery).","operationId":"listCreditMemos","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items` or `include_linked_txns`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"description":"If you set `include_linked_txns` to true, then the returned object will include a list of all the transactions linked to the queried object. (This list is similar to the History view of a transaction in the user interface, but not identical, as the SDK list contains only linked transactions, not items.) Each linked transaction will be represented by a `linked_txn` aggregate.","in":"query","name":"include_linked_txns","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["ARAccountRef","BillAddress","BillAddressBlock","ClassRef","CreditMemoLineGroupRet","CreditMemoLineRet","CreditRemaining","CreditRemainingInHomeCurrency","CurrencyRef","CustomerMsgRef","CustomerRef","CustomerSalesTaxCodeRef","DataExtRet","DiscountLineRet","DueDate","EditSequence","ExchangeRate","ExternalGUID","FOB","IsPending","IsTaxIncluded","IsToBeEmailed","IsToBePrinted","ItemSalesTaxRef","LinkedTxn","Memo","Other","PONumber","RefNumber","SalesRepRef","SalesTaxLineRet","SalesTaxPercentage","SalesTaxTotal","ShipAddress","ShipAddressBlock","ShipDate","ShipMethodRef","ShippingLineRet","Subtotal","TemplateRef","TermsRef","TimeCreated","TimeModified","TotalAmount","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listCreditMemos_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List credit memos","tags":["Credit Memos"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createCreditMemo_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CreditMemoAddRq`. The `credit_memo_add` wrapper from qbXML is also accepted.\n\nAdds a credit memo: an amount the business owes a customer, for returned goods, an overpayment or a prepayment. It lowers the customer's balance, but isn't set against an invoice until a payment or the invoice applies it. `customer_ref` is required, and lines go in `credit_memo_line_add`. What a vendor owes the business is a vendor credit, not a credit memo.\n\nThe CreditMemo shouldn’t be confused with a VendorCredit, which specifies an amount that a vendor owes you.\n\n### Using Credit Memos for Pre-Payments\n\nOccasionally an application will need to record pre-payments for a job that is invoiced or paid for only when it is complete. One can create sales receipts for pre-payments using an item other charge named something like “Pre-payment”. If the customer will eventually be sent an invoice for the total job, create credit memos for that customer for the pre-payment amount on each sales receipt. If the customer will be paying for the final job when it is completed and will be issued a sales receipt, don’t create the credit memos. The credit memos are only used for invoice transactions.\n\nWhen the work order is complete add the invoice to QuickBooks and then apply the credit memos with a ReceivePaymentAdd request. The amount due on the invoice will be reduced properly and all of the transactions will be properly recorded in QuickBooks.\n\nIf a sales receipt will be issued at the end of the job, include pre-payment information in multiple lines or as a summary line. Use the description field to list the existing pre-payment sales receipt or receipts so all transactions can be tied together on the final sales receipt.\n\nIntuit's reference: [CreditMemoAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/creditmemoadd).","operationId":"createCreditMemo","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"bill_address":{"addr1":"123 Main St","city":"Springfield","postal_code":"62701","state":"IL"},"credit_memo_line_add":[{"desc":"Blue widget, large","item_ref":{"full_name":"Widget"},"quantity":2,"rate":125.0}],"customer_ref":{"full_name":"Acme Corp"},"memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15"},"schema":{"not":{"anyOf":[{"properties":{"credit_memo_line_add":{"maxItems":0},"credit_memo_line_group_add":{"maxItems":0}}}]},"properties":{"discount_line_add":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"is_taxable":{"type":"boolean"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"is_pending":{"description":"If `is_pending` is set to true, the credit memo hasn’t been completed. Within QuickBooks, you can change the `is_pending` status for a credit memo by choosing “Mark Credit Memo As Pending” or “Mark Credit Memo As Final” from the Edit menu.","type":"boolean"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"shipping_line_add":{"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"}},"required":["amount"],"type":"object"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_memo_line_group_add":{"description":"Represents a previously defined group of lines in the credit memo. Compare with CreditMemoLine, which represents just one line in the credit memo.\n\nAt least one entry is required across `credit_memo_line_add` and `credit_memo_line_group_add`; they combine, any number of each. QuickBooks receives them in that order: every `credit_memo_line_add`, then every `credit_memo_line_group_add`.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["item_group_ref"],"type":"object"},"type":"array"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"sales_tax_line_add":{"not":{"anyOf":[{"required":["amount","rate_percent"]}]},"properties":{"account_ref":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `amount`, or `rate_percent`.","type":"number"}},"type":"object"},"credit_memo_line_add":{"description":"Represents one line in the credit memo. Compare with CreditMemoGroupLine, which represents a previously defined group of lines in the credit memo.\n\nAt least one entry is required across `credit_memo_line_add` and `credit_memo_line_group_add`; they combine, any number of each. QuickBooks receives them in that order: every `credit_memo_line_add`, then every `credit_memo_line_group_add`.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["rate","price_level_ref"]},{"required":["rate_percent","price_level_ref"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_card_txn_info":{"description":"Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element `credit_card_txn_input_info`” data is the data from the original qbmsXML request. The “`credit_card_txn_result_info`” is the data from the original qbmsXML response.","properties":{"credit_card_txn_input_info":{"description":"This contains data originally supplied in the QBMS transaction request. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"commercial_card_code":{"description":"This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.","type":"string"},"credit_card_address":{"description":"The address associated with this credit card.","type":"string"},"credit_card_number":{"description":"Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.","type":"string"},"credit_card_postal_code":{"description":"The postal code associated with the address for this credit card.","type":"string"},"credit_card_txn_type":{"description":"Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.","enum":["Authorization","Capture","Charge","Refund","VoiceAuthorization"],"type":"string"},"expiration_month":{"description":"The month when the credit card expires.","maximum":12,"minimum":1,"type":"integer"},"expiration_year":{"description":"The year when the credit card expires.","type":"integer"},"name_on_card":{"description":"The name on the customer’s credit card.","type":"string"},"transaction_mode":{"description":"Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).","enum":["CardNotPresent","CardPresent"],"type":"string"}},"required":["credit_card_number","expiration_month","expiration_year","name_on_card"],"type":"object"},"credit_card_txn_result_info":{"description":"This contains data returned in the QBMS transaction response. This information block shouldn’t be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.","properties":{"authorization_code":{"description":"The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.","type":"string"},"avs_street":{"description":"This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there isn’t a match, or avssNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"avs_zip":{"description":"This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there isn’t a match, or avszNotAvailable if the card issuer doesn’t support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"card_security_code_match":{"description":"This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there isn’t a match.","enum":["Fail","NotAvailable","Pass"],"type":"string"},"client_trans_id":{"description":"This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.","type":"string"},"credit_card_trans_id":{"description":"This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq.","type":"string"},"merchant_account_number":{"description":"This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.","type":"string"},"payment_grouping_code":{"description":"Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.","type":"integer"},"payment_status":{"description":"Indicates payment processing status as known by QuickBooks/QBMS integration state. `psCompleted` indicates confirmed success; `psUnknown` indicates status could not be definitively confirmed.","enum":["Completed","Unknown"],"type":"string"},"recon_batch_id":{"description":"This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.","type":"string"},"result_code":{"description":"This contains the status code returned in the original QBMS transaction response.","type":"integer"},"result_message":{"description":"This contains the status message returned in the original QBMS transaction response.","type":"string"},"txn_authorization_stamp":{"description":"This value is used to support the credit card transaction Reconcile feature within QuickBooks.","type":"integer"},"txn_authorization_time":{"description":"Timestamp indicating the time in which the card processor authorized the transaction.","format":"date-time","type":"string"}},"required":["credit_card_trans_id","merchant_account_number","payment_status","result_code","result_message","txn_authorization_time"],"type":"object"}},"required":["credit_card_txn_input_info","credit_card_txn_result_info"],"type":"object"},"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_taxable":{"type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"po_number":{"description":"Purchase order number.","type":"string"},"memo":{"description":"The memo doesn’t print on the credit memo, but does appear in the account register and the customer register.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"},"include_ret_element":{"items":{"enum":["ARAccountRef","BillAddress","BillAddressBlock","ClassRef","CreditMemoLineGroupRet","CreditMemoLineRet","CreditRemaining","CreditRemainingInHomeCurrency","CurrencyRef","CustomerMsgRef","CustomerRef","CustomerSalesTaxCodeRef","DataExtRet","DiscountLineRet","DueDate","EditSequence","ExchangeRate","ExternalGUID","FOB","IsPending","IsTaxIncluded","IsToBeEmailed","IsToBePrinted","ItemSalesTaxRef","LinkedTxn","ListID","Memo","Other","OwnerID","PONumber","RefNumber","SalesRepRef","SalesTaxLineRet","SalesTaxPercentage","SalesTaxTotal","ShipAddress","ShipAddressBlock","ShipDate","ShipMethodRef","ShippingLineRet","Subtotal","TemplateRef","TermsRef","TimeCreated","TimeModified","TotalAmount","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},"required":["customer_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createCreditMemo_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create credit memo","tags":["Credit Memos"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateCreditMemo_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `CreditMemoModRq`, from qbXML 3.0. The `credit_memo_mod` wrapper from qbXML is also accepted.\n\nSome fields in a CreditMemoMod request can’t be cleared. If any of the following fields is included in a credit-memo modify request, it must contain a value:\n\n- `customer_ref`\n- `ar_account_ref`\n- `template_ref`\n- `txn_date`\n- `is_pending`\n- `due_date`\n- `ship_date`\n- `item_sales_tax_ref`\n- `is_to_be_printed`\n\nWithin `credit_memo_line_mod` or `credit_memo_line_group_mod`:\n\n- `item_ref`\n- Quantity\n- Rate\n- Amount\n- `sales_tax_code_ref`\n- `override_item_account_ref`\n\n(For more details about what it means for a field to be clearable or not clearable, see [Modify, delete, and void requests and responses](https://developer.intuit.com/app/developer/qbdesktop/docs/develop/exploring-the-quickbooks-desktop-sdk).)\n\nIntuit's reference: [CreditMemoMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/creditmemomod).","operationId":"updateCreditMemo","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"bill_address":{"addr1":"123 Main St","city":"Springfield","postal_code":"62701","state":"IL"},"customer_ref":{"full_name":"Acme Corp"},"edit_sequence":"1700000000","memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","txn_id":"1A2B-1700000000"},"schema":{"properties":{"ar_account_ref":{"description":"`ar_account_ref` points to an Accounts Receivable account. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bill_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_memo_line_group_mod":{"description":"Represents a previously defined group of lines in the credit memo. Compare with CreditMemoLine, which represents just one line in the credit memo.\n\n`credit_memo_line_mod` and `credit_memo_line_group_mod` combine: any number of each. QuickBooks receives them in that order: every `credit_memo_line_mod`, then every `credit_memo_line_group_mod`.","items":{"properties":{"credit_memo_line_mod":{"description":"Represents one line in the credit memo. Compare with CreditMemoGroupLine, which represents a previously defined group of lines in the credit memo.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["rate","price_level_ref"]},{"required":["rate_percent","price_level_ref"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"credit_memo_line_mod":{"description":"Represents one line in the credit memo. Compare with CreditMemoGroupLine, which represents a previously defined group of lines in the credit memo.\n\n`credit_memo_line_mod` and `credit_memo_line_group_mod` combine: any number of each. QuickBooks receives them in that order: every `credit_memo_line_mod`, then every `credit_memo_line_group_mod`.","items":{"not":{"anyOf":[{"required":["rate","rate_percent"]},{"required":["rate","price_level_ref"]},{"required":["rate_percent","price_level_ref"]},{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"price_level_ref":{"description":"Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"rate_percent":{"description":"Indicates the price of something as a percent.\n\nChoose at most one of: `rate`, or `rate_percent`, or `price_level_ref`.","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"customer_msg_ref":{"description":"A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_sales_tax_code_ref":{"description":"Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"include_ret_element":{"items":{"enum":["ARAccountRef","BillAddress","BillAddressBlock","ClassRef","CreditMemoLineGroupRet","CreditMemoLineRet","CreditRemaining","CreditRemainingInHomeCurrency","CurrencyRef","CustomerMsgRef","CustomerRef","CustomerSalesTaxCodeRef","DataExtRet","DiscountLineRet","DueDate","EditSequence","ExchangeRate","ExternalGUID","FOB","IsPending","IsTaxIncluded","IsToBeEmailed","IsToBePrinted","ItemSalesTaxRef","LinkedTxn","ListID","Memo","Other","OwnerID","PONumber","RefNumber","SalesRepRef","SalesTaxLineRet","SalesTaxPercentage","SalesTaxTotal","ShipAddress","ShipAddressBlock","ShipDate","ShipMethodRef","ShippingLineRet","Subtotal","TemplateRef","TermsRef","TimeCreated","TimeModified","TotalAmount","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_pending":{"description":"If `is_pending` is set to true, the credit memo hasn’t been completed. Within QuickBooks, you can change the `is_pending` status for a credit memo by choosing “Mark Credit Memo As Pending” or “Mark Credit Memo As Final” from the Edit menu.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"item_sales_tax_ref":{"description":"An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"The memo doesn’t print on the credit memo, but does appear in the account register and the customer register.","type":"string"},"other":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"po_number":{"description":"Purchase order number.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or `bill_address_block`.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a `bill_address` or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"ship_date":{"description":"The date when the product was, or will be, shipped.","format":"date","type":"string"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateCreditMemo_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update credit memo","tags":["Credit Memos"]}},"/connections/{connection_id}/sales-tax-payables":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listSalesTaxPayables_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SalesTaxPayableQueryRq`, from qbXML 9.0.\n\nIntuit's reference: [SalesTaxPayableQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/salestaxpayablequery).","operationId":"listSalesTaxPayables","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"The date when the exchange rate was last changed.","in":"query","name":"as_of_date","required":false,"schema":{"format":"date","type":"string"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["Amount","PayeeEntityRef","SalesTaxPayableLineRet"],"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listSalesTaxPayables_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List sales tax payables","tags":["Sales Tax Payables"]}},"/connections/{connection_id}/purchase-orders":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listPurchaseOrders_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PurchaseOrderQueryRq`.\n\nQueries for the specified purchase order or set of orders.\n\nIntuit's reference: [PurchaseOrderQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/purchaseorderquery).","operationId":"listPurchaseOrders","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items` or `include_linked_txns`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"description":"If you set `include_linked_txns` to true, then the returned object will include a list of all the transactions linked to the queried object. (This list is similar to the History view of a transaction in the user interface, but not identical, as the SDK list contains only linked transactions, not items.) Each linked transaction will be represented by a `linked_txn` aggregate.","in":"query","name":"include_linked_txns","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["ClassRef","CurrencyRef","DataExtRet","DueDate","EditSequence","ExchangeRate","ExpectedDate","ExternalGUID","FOB","InventorySiteRef","IsFullyReceived","IsManuallyClosed","IsTaxIncluded","IsToBeEmailed","IsToBePrinted","LinkedTxn","Memo","Other1","Other2","PurchaseOrderLineGroupRet","PurchaseOrderLineRet","RefNumber","SalesTaxCodeRef","ShipAddress","ShipAddressBlock","ShipMethodRef","ShipToEntityRef","TemplateRef","TermsRef","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber","VendorAddress","VendorAddressBlock","VendorMsg","VendorRef"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listPurchaseOrders_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List purchase orders","tags":["Purchase Orders"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createPurchaseOrder_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PurchaseOrderAddRq`. The `purchase_order_add` wrapper from qbXML is also accepted.\n\nAdds a purchase order, which is an order submitted to a vendor. You can use ItemReceiptAdd to receive items against a purchase order as items arrive from the vendor. A purchase order is a non-posting transaction, so it doesn’t affect a company’s balance sheet or income statement.\n\nIntuit's reference: [PurchaseOrderAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/purchaseorderadd).","operationId":"createPurchaseOrder","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"memo":"Monthly service","purchase_order_line_add":[{"desc":"Blue widget, large","item_ref":{"full_name":"Widget"},"quantity":2,"rate":125.0}],"ref_number":"1001","txn_date":"2026-01-15","vendor_ref":{"full_name":"Northwind Supplies"}},"schema":{"not":{"anyOf":[{"required":["inventory_site_ref","ship_to_entity_ref"]},{"properties":{"purchase_order_line_add":{"maxItems":0},"purchase_order_line_group_add":{"maxItems":0}}}]},"properties":{"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expected_date":{"description":"The date on which shipment is expected.","format":"date","type":"string"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"include_ret_element":{"items":{"enum":["ClassRef","CurrencyRef","DataExtRet","DueDate","EditSequence","ExchangeRate","ExpectedDate","ExternalGUID","FOB","InventorySiteRef","IsFullyReceived","IsManuallyClosed","IsTaxIncluded","IsToBeEmailed","IsToBePrinted","LinkedTxn","ListID","Memo","Other1","Other2","OwnerID","PurchaseOrderLineGroupRet","PurchaseOrderLineRet","RefNumber","SalesTaxCodeRef","ShipAddress","ShipAddressBlock","ShipMethodRef","ShipToEntityRef","TemplateRef","TermsRef","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber","VendorAddress","VendorAddressBlock","VendorMsg","VendorRef"],"type":"string"},"type":"array"},"inventory_site_ref":{"description":"Site where inventory is located.\n\nChoose at most one of: `inventory_site_ref`, or `ship_to_entity_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"memo":{"description":"This can be included in reports, but it doesn’t appear on the printed purchase order.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"purchase_order_line_add":{"description":"One line of the purchase order. Compare with PurchaseOrderLineGroup, which represents a previously defined group of lines in the purchase order.\n\nAt least one entry is required across `purchase_order_line_add` and `purchase_order_line_group_add`; they combine, any number of each. QuickBooks receives them in that order: every `purchase_order_line_add`, then every `purchase_order_line_group_add`.","items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"desc":{"description":"Description that appears on the purchase order for this line item.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"purchase_order_line_group_add":{"description":"Represents a previously defined group of lines in the purchase order. Compare with PurchaseOrderLine, which represents just one line in the purchase order.\n\nAt least one entry is required across `purchase_order_line_add` and `purchase_order_line_group_add`; they combine, any number of each. QuickBooks receives them in that order: every `purchase_order_line_add`, then every `purchase_order_line_group_add`.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"Description that appears on the purchase order for this line item.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["item_group_ref"],"type":"object"},"type":"array"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or BillAddressBlock.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ship_to_entity_ref":{"description":"Refers to a customer, vendor, employee, or person on the “other names” list to whom this order is to be shipped. If a `ship_to_entity_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.\n\nChoose at most one of: `inventory_site_ref`, or `ship_to_entity_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"vendor_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"vendor_msg":{"description":"Message to be printed on a purchase order for the vendor to read.","type":"string"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createPurchaseOrder_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create purchase order","tags":["Purchase Orders"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updatePurchaseOrder_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PurchaseOrderModRq`, from qbXML 2.1. The `purchase_order_mod` wrapper from qbXML is also accepted.\n\nSome fields in a PurchaseOrderMod request can’t be cleared. If any of the following fields is included in a purchase order modify request, it must contain a value:\n\n- `template_ref`\n- `txn_date`\n- `due_date`\n- `expected_date`\n- `is_manually_closed`\n- `is_to_be_printed`\n\nWithin `purchase_order_line_mod` or `purchase_order_line_group_mod`:\n\n- `item_ref`\n- Quantity\n- Rate\n- Amount\n- `is_manually_closed`\n- `override_item_account_ref`\n\n(For more details about what it means for a field to be clearable or not clearable, see the QB SDK Programmer’s Guide ([PDF](https://developer.intuit.com/app/developer/logged-in-content/QBSDK_ProGuide.pdf), 9.6 MB).)\n\nIntuit's reference: [PurchaseOrderMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/purchaseordermod).","operationId":"updatePurchaseOrder","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","txn_id":"1A2B-1700000000","vendor_ref":{"full_name":"Northwind Supplies"}},"schema":{"not":{"anyOf":[{"required":["inventory_site_ref","ship_to_entity_ref"]}]},"properties":{"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"due_date":{"description":"The date on which payment is due.","format":"date","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expected_date":{"description":"The date on which shipment is expected.","format":"date","type":"string"},"fob":{"description":"QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.","type":"string"},"include_ret_element":{"items":{"enum":["ClassRef","CurrencyRef","DataExtRet","DueDate","EditSequence","ExchangeRate","ExpectedDate","ExternalGUID","FOB","InventorySiteRef","IsFullyReceived","IsManuallyClosed","IsTaxIncluded","IsToBeEmailed","IsToBePrinted","LinkedTxn","ListID","Memo","Other1","Other2","OwnerID","PurchaseOrderLineGroupRet","PurchaseOrderLineRet","RefNumber","SalesTaxCodeRef","ShipAddress","ShipAddressBlock","ShipMethodRef","ShipToEntityRef","TemplateRef","TermsRef","TimeCreated","TimeModified","TotalAmount","TotalAmountInHomeCurrency","TxnDate","TxnID","TxnNumber","VendorAddress","VendorAddressBlock","VendorMsg","VendorRef"],"type":"string"},"type":"array"},"inventory_site_ref":{"description":"Site where inventory is located.\n\nChoose at most one of: `inventory_site_ref`, or `ship_to_entity_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this purchase order has been closed, even if all the items haven’t been received or the sale hasn’t been cancelled. Once the purchase order is marked as closed, all the line items within it become closed as well. You can’t change `is_manually_closed` to false after the purchase order has been fully received.","type":"boolean"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"is_to_be_emailed":{"description":"When enabled, QuickBooks validates the customer email at runtime before sending. If no valid email is available, the request fails.","type":"boolean"},"is_to_be_printed":{"description":"If `is_to_be_printed` is true, QuickBooks queues the form for later printing. It does not print immediately; printing is still a user action in QuickBooks.","type":"boolean"},"memo":{"description":"This can be included in reports, but it doesn’t appear on the printed purchase order.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"purchase_order_line_group_mod":{"description":"Represents a previously defined group of lines in the purchase order. Compare with PurchaseOrderLine, which represents just one line in the purchase order.\n\n`purchase_order_line_mod` and `purchase_order_line_group_mod` combine: any number of each. QuickBooks receives them in that order: every `purchase_order_line_mod`, then every `purchase_order_line_group_mod`.","items":{"properties":{"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"purchase_order_line_mod":{"description":"One line of the purchase order. Compare with PurchaseOrderLineGroup, which represents a previously defined group of lines in the purchase order.","items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"Description that appears on the purchase order for this line item.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this purchase order has been closed, even if all the items haven’t been received or the sale hasn’t been cancelled. Once the purchase order is marked as closed, all the line items within it become closed as well. You can’t change `is_manually_closed` to false after the purchase order has been fully received.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"purchase_order_line_mod":{"description":"One line of the purchase order. Compare with PurchaseOrderLineGroup, which represents a previously defined group of lines in the purchase order.\n\n`purchase_order_line_mod` and `purchase_order_line_group_mod` combine: any number of each. QuickBooks receives them in that order: every `purchase_order_line_mod`, then every `purchase_order_line_group_mod`.","items":{"properties":{"amount":{"description":"A monetary amount.","type":"number"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"Description that appears on the purchase order for this line item.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_manually_closed":{"description":"If `is_manually_closed` is true, this purchase order has been closed, even if all the items haven’t been received or the sale hasn’t been cancelled. Once the purchase order is marked as closed, all the line items within it become closed as well. You can’t change `is_manually_closed` to false after the purchase order has been fully received.","type":"boolean"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"manufacturer_part_number":{"description":"The part number used by the manufacturer of the item.","type":"string"},"other1":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"other2":{"description":"Other, Other1, and Other2 are built-in transaction custom fields. Other is transaction-level; Other1 and Other2 are line-level. These fields are always available through the SDK and do not require DataExtDef setup. Template labels in the UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"rate":{"description":"If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity can’t be cleared.)","type":"number"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"service_date":{"description":"Indicates the date on which the QuickBooks user performs the service for the customer.","format":"date","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in `ship_address_block` or BillAddressBlock.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"ship_method_ref":{"description":"A shipping method, for example, standard mail or overnight delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"ship_to_entity_ref":{"description":"Refers to a customer, vendor, employee, or person on the “other names” list to whom this order is to be shipped. If a `ship_to_entity_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.\n\nChoose at most one of: `inventory_site_ref`, or `ship_to_entity_ref`.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"template_ref":{"description":"QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A `template_ref` element refers to one of these templates.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"vendor_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"vendor_msg":{"description":"Message to be printed on a purchase order for the vendor to read.","type":"string"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updatePurchaseOrder_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update purchase order","tags":["Purchase Orders"]}},"/connections/{connection_id}/workflow-runs/{run_id}":{"delete":{"description":"Deletes a run you started that has ended (`completed`, `failed` or `cancelled`), together with everything the workflows it called did and its step history, before retention would. Finished runs are otherwise kept for 60 days, like queued requests. A run that is still `running` or `awaiting_input` cannot be deleted.","parameters":[{"description":"ID of the connection","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"ID of the workflow run","in":"path","name":"run_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"},"404":{"description":"No run with that id on that connection"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"`run_not_finished`: the run is still running or waiting."}},"security":[{"apiKey":[]}],"summary":"Delete a finished workflow run","tags":["Workflows"]},"get":{"parameters":[{"description":"ID of the connection","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"ID of the workflow run","in":"path","name":"run_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WorkflowRun"}},"type":"object"}}},"description":"The run"},"404":{"description":"No run you started with that id on that connection"}},"security":[{"apiKey":[]}],"summary":"Get a workflow run","tags":["Workflows"]}},"/connections/{connection_id}/workers-comp-codes":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listWorkersCompCodes_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `WorkersCompCodeQueryRq`, from qbXML 7.0.\n\nRequires the company to be subscribed to Intuit Payroll service. Queries for the workers’ compensation codes specified in the query filter; you can filter by name, modified date, and effective date.\n\nIntuit's reference: [WorkersCompCodeQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/workerscompcodequery).","operationId":"listWorkersCompCodes","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_effective_date`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_effective_date`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"The beginning of the range of effective dates to be searched.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_effective_date`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_effective_date`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_effective_date","required":false,"schema":{"format":"date","type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_effective_date`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_effective_date`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_effective_date`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_effective_date`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["CurrentEffectiveDate","CurrentRate","Desc","EditSequence","IsActive","ListID","Name","NextEffectiveDate","NextRate","RateHistory","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_effective_date`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_effective_date`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nQuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_effective_date`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_effective_date`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_effective_date`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_effective_date`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_effective_date`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_effective_date`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"The end of the range of effective dates to be searched.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_effective_date`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_effective_date`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_effective_date","required":false,"schema":{"format":"date","type":"string"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_effective_date`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_effective_date`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listWorkersCompCodes_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List workers comp codes","tags":["Workers Comp Codes"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createWorkersCompCode_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `WorkersCompCodeAddRq`, from qbXML 7.0. The `workers_comp_code_add` wrapper from qbXML is also accepted.\n\nAdds a workers’ compensation code with one or more rate entries (each rate entry has an effective date and a rate). You can assign effective dates in the past, present or future. However, only one future date will be used. If a future date exists and you write a new one (using the Mod request) then the most recently written code wins; if you have multiple future dates in the Add request, the last one wins.\n\nThis request requires the company to be subscribed to Intuit Payroll service. Also, you can’t currently assign codes to employees in the SDK. You have to use the UI to do that.\n\nIntuit's reference: [WorkersCompCodeAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/workerscompcodeadd).","operationId":"createWorkersCompCode","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"8810","rate_entry":[{"effective_date":"2026-01-15","rate":125.0}]},"schema":{"properties":{"desc":{"description":"A descriptive text field.","type":"string"},"include_ret_element":{"items":{"enum":["CurrentEffectiveDate","CurrentRate","Desc","EditSequence","ExternalGUID","IsActive","ListID","Name","NextEffectiveDate","NextRate","OwnerID","RateHistory","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"rate_entry":{"items":{"properties":{"effective_date":{"description":"Specifies the date at which the workers’ comp code and it’s related premium goes into effect.","format":"date","type":"string"},"rate":{"description":"Indicates the price of something.","type":"number"}},"required":["effective_date","rate"],"type":"object"},"type":"array"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["name","rate_entry"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createWorkersCompCode_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create workers comp code","tags":["Workers Comp Codes"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateWorkersCompCode_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `WorkersCompCodeModRq`, from qbXML 7.0. The `workers_comp_code_mod` wrapper from qbXML is also accepted.\n\nRequires the company to be subscribed to Intuit Payroll service. Modifies an existing workers’ compensation code. Notice that if a future date exists and you write a new one (using the Mod request) then the most recently written code wins.\n\nYou can’t currently assign codes to employees in the SDK. You have to use the UI to do that.\n\nIntuit's reference: [WorkersCompCodeMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/workerscompcodemod).","operationId":"updateWorkersCompCode","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"8810"},"schema":{"properties":{"desc":{"description":"A descriptive text field.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"include_ret_element":{"items":{"enum":["CurrentEffectiveDate","CurrentRate","Desc","EditSequence","ExternalGUID","IsActive","ListID","Name","NextEffectiveDate","NextRate","OwnerID","RateHistory","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"list_id":{"description":"`list_id` and FullName both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because FullName remains distinct.","type":"string"},"rate_entry":{"items":{"properties":{"effective_date":{"description":"Specifies the date at which the workers’ comp code and it’s related premium goes into effect.","format":"date","type":"string"},"rate":{"description":"Indicates the price of something.","type":"number"}},"required":["effective_date","rate"],"type":"object"},"type":"array"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateWorkersCompCode_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update workers comp code","tags":["Workers Comp Codes"]}},"/connections/{connection_id}/item-discounts":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listItemDiscounts_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemDiscountQueryRq`.\n\nQueries for the specified discount item or set of items.\n\nIntuit's reference: [ItemDiscountQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemdiscountquery).","operationId":"listItemDiscounts","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `full_name` or `list_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters according to the object’s class.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AccountRef","BarCodeValue","ClassRef","DataExtRet","DiscountRate","DiscountRatePercent","EditSequence","ExternalGUID","FullName","IsActive","ItemDesc","ListID","Name","ParentRef","SalesTaxCodeRef","Sublevel","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listItemDiscounts_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List item discounts","tags":["Item Discounts"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createItemDiscount_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemDiscountAddRq`. The `item_discount_add` wrapper from qbXML is also accepted.\n\nAdds a discount item. A discount item is a percentage or a fixed amount that will be subtracted from a total or subtotal. Items should be subtotaled (using an ItemSubtotal item) before a discount item is applied to them, because a discount only acts on the line that is directly above it.\n\nA discount item is different from a discount for early payment, which is represented as part of a StandardTerms object or DateDrivenTerms object. Note: When you specify an ItemDiscount item in any transaction (by using an ItemRef), don’t specify a Quantity in the transaction. If you do, you will receive an error.\n\nSee also: [Flat discounts](https://docs.qubesync.com/quickbooks-notes#flat-discounts).\n\nIntuit's reference: [ItemDiscountAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemdiscountadd).","operationId":"createItemDiscount","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"name":"Loyalty Discount"},"schema":{"not":{"anyOf":[{"required":["discount_rate","discount_rate_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"discount_rate":{"description":"The discount rate when it is given as a monetary amount. `discount_rate` will be subtracted from a total or subtotal.\n\nChoose at most one of: `discount_rate`, or `discount_rate_percent`.","type":"number"},"discount_rate_percent":{"description":"The discount rate when it is given as a percent. `discount_rate_percent` will be subtracted from a total or subtotal.\n\nChoose at most one of: `discount_rate`, or `discount_rate_percent`.","type":"number"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["AccountRef","BarCodeValue","ClassRef","DataExtRet","DiscountRate","DiscountRatePercent","EditSequence","ExternalGUID","FullName","IsActive","ItemDesc","ListID","Name","OwnerID","ParentRef","SalesTaxCodeRef","Sublevel","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createItemDiscount_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create item discount","tags":["Item Discounts"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateItemDiscount_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemDiscountModRq`, from qbXML 3.0. The `item_discount_mod` wrapper from qbXML is also accepted.\n\nModifies a discount item. Starting with qbXML spec 7.0, you can modify the account ref, using the `account_ref` aggregate and the `apply_account_ref_to_existing_txns` boolean. You need to use the `apply_account_ref_to_existing_txns` boolean because the QuickBooks UI displays a prompt asking whether the change should apply to existing transactions or not. Specifying True for the boolean basically dismisses this with a “Yes” answer, allowing your changes to be made and changes any existing transactions that use the item with that `account_ref`.\n\nSpecifying “False” means that the mod won’t take affect if there are existing transactions.\n\nSetting this to “True” should be used with caution and normally only after some user has indicated that they want those changes made to all those existing transactions!\n\nIf any affected transactions are protected by a closing date and password, the `account_ref` changes won’t be made and so the Mod request will return an error without making the requested Mod.\n\nSee also: [Flat discounts](https://docs.qubesync.com/quickbooks-notes#flat-discounts).\n\nIntuit's reference: [ItemDiscountMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemdiscountmod).","operationId":"updateItemDiscount","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Loyalty Discount"},"schema":{"not":{"anyOf":[{"required":["discount_rate","discount_rate_percent"]}]},"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"apply_account_ref_to_existing_txns":{"description":"Used to support changing the `account_ref` in the Mod request. When you do this, the QuickBooks UI normally displays a prompt asking whether the change should apply to existing transactions or not. Specifying False basically dismisses this with a “No” answer; specifying True dismisses it with a “Yes” answer and then changes the existing transactions that use the item with that `account_ref`.","type":"boolean"},"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"discount_rate":{"description":"The discount rate when it is given as a monetary amount. `discount_rate` will be subtracted from a total or subtotal.\n\nChoose at most one of: `discount_rate`, or `discount_rate_percent`.","type":"number"},"discount_rate_percent":{"description":"The discount rate when it is given as a percent. `discount_rate_percent` will be subtracted from a total or subtotal.\n\nChoose at most one of: `discount_rate`, or `discount_rate_percent`.","type":"number"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"include_ret_element":{"items":{"enum":["AccountRef","BarCodeValue","ClassRef","DataExtRet","DiscountRate","DiscountRatePercent","EditSequence","ExternalGUID","FullName","IsActive","ItemDesc","ListID","Name","OwnerID","ParentRef","SalesTaxCodeRef","Sublevel","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"parent_ref":{"description":"A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateItemDiscount_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update item discount","tags":["Item Discounts"]}},"/connections/{connection_id}/txn-displays":{"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createTxnDisplay_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `TxnDisplayAddRq`, from qbXML 3.0.\n\nA TxnDisplayAdd request opens a form within the QuickBooks UI for adding a transaction. You may optionally supply an entity reference to “prefill” certain forms.\n\nIntuit's reference: [TxnDisplayAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/txndisplayadd).","operationId":"createTxnDisplay","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"txn_display_add_type":"Invoice"},"schema":{"properties":{"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In JournalCreditLine and JournalDebitLine messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_display_add_type":{"description":"Specifies the type of QuickBooks transaction for which to open an edit form in the QuickBooks UI. Notice that some transaction types don’t support the entity reference that “prefills” the form because it would make no sense to do this for certain forms.","enum":["Bill","BillPayment","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","VendorCredit"],"type":"string"}},"required":["txn_display_add_type"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createTxnDisplay_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create txn display","tags":["Txn Displays"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateTxnDisplay_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `TxnDisplayModRq`, from qbXML 3.0.\n\nA TxnDisplayMod request opens a QuickBooks transaction within the QuickBooks UI for modification.\n\nIntuit's reference: [TxnDisplayMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/txndisplaymod).","operationId":"updateTxnDisplay","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"txn_display_mod_type":"Invoice","txn_id":"1A2B-1700000000"},"schema":{"properties":{"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_display_mod_type":{"description":"The type of QuickBooks transaction to open for modification in the QuickBooks UI. (`txn_id` specifies the particular transaction.)","enum":["Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","VendorCredit"],"type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["txn_display_mod_type","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateTxnDisplay_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update txn display","tags":["Txn Displays"]}},"/connections/{connection_id}/qwc":{"post":{"description":"The QuickBooks Web Connector config file for this connection -- give it to the user to add to their Web Connector (see the Onboarding guide for the usual, hosted alternative). The Web Connector lists it under the app's name followed by the connection's `name` in parentheses, and keeps it apart from other connections of the same app. Adding a newer file for the same connection replaces its entry.","operationId":"getConnectionQwc","parameters":[{"description":"The connection to act on.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"qwc":{"type":"string"}},"type":"object"}}},"description":"The QWC file"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"apiKey":[]}],"summary":"Get the QWC file","tags":["Connections"]}},"/connections/{connection_id}/time-trackings":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listTimeTrackings_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `TimeTrackingQueryRq`.\n\nThe time-tracking transactions that are returned in this query include time tracking information that was entered into QuickBooks manually or gathered using the QuickBooks “Timer” or “Stopwatch.”\n\nNote that the QuickBooks Timer application can run on its own without QuickBooks, but the QuickBooks SDK can’t access the Timer data directly. The Timer data must be imported into QuickBooks before it is accessible via the SDK.)\n\nIntuit's reference: [TimeTrackingQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/timetrackingquery).","operationId":"listTimeTrackings","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["BillableStatus","ClassRef","CustomerRef","Duration","EditSequence","EntityRef","ExternalGUID","ItemServiceRef","Notes","PayrollItemWageRef","Rate","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or the set (`max_returned`, `modified_date_range_filter`, `time_tracking_entity_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or the set (`max_returned`, `modified_date_range_filter`, `time_tracking_entity_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"Allows you to query for one or more names on the QuickBooks Vendor list, Employee list, or Other Names list.\n\nChoose at most one of: `txn_id`, or the set (`max_returned`, `modified_date_range_filter`, `time_tracking_entity_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"time_tracking_entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or the set (`max_returned`, `modified_date_range_filter`, `time_tracking_entity_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or the set (`max_returned`, `modified_date_range_filter`, `time_tracking_entity_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listTimeTrackings_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List time trackings","tags":["Time Trackings"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createTimeTracking_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `TimeTrackingAddRq`. The `time_tracking_add` wrapper from qbXML is also accepted.\n\nThis request adds a time tracking transaction to QuickBooks, mirroring the time-tracking feature available in the QuickBooks UI. The time tracking feature allows a QuickBooks user to base payroll or invoices on time worked. You can add time-tracking information to any vendor, employee, or person on the Other Names list in QuickBooks.\n\nIf IsBillable is set to true, both `customer_ref` and `item_service_ref` are required.\n\nThere is no link between an invoice and the time entries. However when you do the invoicing from QuickBooks, QuickBooks does mark the time entries as “billed.” If you don’t record the time entries as billed properly, then you get into a user workflow issue where everytime the user creates an invoice for a customer, QB pops up a dialog asking if they want to bill the unbilled time (which you already billed from your app). That’s why beginning with QB2007 and qbXML spec 6.0 we added support for the “`billable_status`” field \\*and\\* add TimeTrackingMod so that you can mark the time as billed when you create an invoice for it.\n\nIntuit's reference: [TimeTrackingAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/timetrackingadd).","operationId":"createTimeTracking","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"customer_ref":{"full_name":"Acme Corp"},"duration":"PT2H30M","entity_ref":{"full_name":"Jane Doe"},"txn_date":"2026-01-15"},"schema":{"properties":{"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or TxnLineID so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"duration":{"description":"Time spent doing the work. In a TimeTrackAdd request, notice that although you can specify seconds, seconds aren’t returned in the response because the UI doesn’t use seconds.","type":"string"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In JournalCreditLine and JournalDebitLine messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["BillableStatus","ClassRef","CustomerRef","Duration","EditSequence","EntityRef","ExternalGUID","ItemServiceRef","ListID","Notes","OwnerID","PayrollItemWageRef","Rate","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"item_service_ref":{"description":"A service item refers to services that a business charges for or purchases. Examples include specialized labor, consulting hours, and professional fees. An `item_service_ref` aggregate refers to an item on the ItemService list. In a request, if an `item_service_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"notes":{"description":"Additional information.","type":"string"},"payroll_item_wage_ref":{"description":"Each payroll wage item describes and names a payment scheme, for example, Regular Pay or Overtime Pay. A `payroll_item_wage_ref` aggregate refers to one of these wage items. In a request, if a `payroll_item_wage_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"rate":{"type":"number"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"}},"required":["duration","entity_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createTimeTracking_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create time tracking","tags":["Time Trackings"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateTimeTracking_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `TimeTrackingModRq`, from qbXML 6.0. The `time_tracking_mod` wrapper from qbXML is also accepted.\n\nModifies a time tracking transaction. This allows you to modify time entry and mark time entered as billed.\n\nApplications using qbXML spec levels less than 6.0 aren’t able to Modify a time tracking transaction. However, those applications can achieve the results of a modify operation by deleting the time tracking transaction (using TxnDelRq) and then re-adding it with the desired values. You can do this only if no other downstream transactions have used that particular time tracking transaction. (Otherwise, the TxnDel request will fail.)\n\nThis differs slightly from the UI, which allows these transactions to be edited directly. However, even in the UI, modifying a time tracking transaction doesn’t result in changes to any downstream transactions that use it.\n\nThere is no link between an invoice and the time entries. However when you do the invoicing from QuickBooks, QuickBooks does mark the time entries as “billed.” If you don’t record the time entries as billed properly, then you get into a user workflow issue where everytime the user creates an invoice for a customer, QB pops up a dialog asking if they want to bill the unbilled time (which you already billed from your app). That’s why beginning with QB2007 and qbXML spec 6.0 we added support for the “`billable_status`” field \\*and\\* add TimeTrackingMod so that you can mark the time as billed when you create an invoice for it.\n\nIntuit's reference: [TimeTrackingMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/timetrackingmod).","operationId":"updateTimeTracking","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"customer_ref":{"full_name":"Acme Corp"},"duration":"PT2H30M","edit_sequence":"1700000000","entity_ref":{"full_name":"Jane Doe"},"txn_date":"2026-01-15","txn_id":"1A2B-1700000000"},"schema":{"properties":{"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"duration":{"description":"Time spent doing the work. In a TimeTrackAdd request, notice that although you can specify seconds, seconds aren’t returned in the response because the UI doesn’t use seconds.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"entity_ref":{"description":"A QuickBooks “entity” is a customer, vendor, employee, or person on the QuickBooks “other names” list. Special cases to note: In a BillToPayQuery message, `entity_ref` refers to the vendor name. In JournalCreditLine and JournalDebitLine messages for A/R accounts, `entity_ref` must refer to a customer, or else the transaction won’t be recorded.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["BillableStatus","ClassRef","CustomerRef","Duration","EditSequence","EntityRef","ExternalGUID","ItemServiceRef","ListID","Notes","OwnerID","PayrollItemWageRef","Rate","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber"],"type":"string"},"type":"array"},"item_service_ref":{"description":"A service item refers to services that a business charges for or purchases. Examples include specialized labor, consulting hours, and professional fees. An `item_service_ref` aggregate refers to an item on the ItemService list. In a request, if an `item_service_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"notes":{"description":"Additional information.","type":"string"},"payroll_item_wage_ref":{"description":"Each payroll wage item describes and names a payment scheme, for example, Regular Pay or Overtime Pay. A `payroll_item_wage_ref` aggregate refers to one of these wage items. In a request, if a `payroll_item_wage_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"rate":{"type":"number"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"}},"required":["duration","edit_sequence","entity_ref","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateTimeTracking_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update time tracking","tags":["Time Trackings"]}},"/connections/{connection_id}/payroll-item-workers-compensations":{"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createPayrollItemWorkersCompensation_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollItemWorkersCompensationAddRq`. The `payroll_item_workers_compensation_add` wrapper from qbXML is also accepted.\n\nIntuit's reference: [PayrollItemWorkersCompensationAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollitemworkerscompensationadd).","operationId":"createPayrollItemWorkersCompensation","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"expense_account_ref":{"full_name":"Payroll Expenses"},"liability_account_ref":{"full_name":"Payroll Liabilities"},"name":"Workers Comp","payment_template_ref":{"full_name":"Example"},"vendor_ref":{"full_name":"Northwind Supplies"}},"schema":{"properties":{"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["EditSequence","ExpenseAccountRef","IsActive","IsTrackedByCustJob","LiabilityAccountRef","LiabilityPaymentSchedule","ListID","Name","PaymentTemplateRef","PayrollItemDetailTypeValue","TimeCreated","TimeModified","VendorAccountNumber","VendorRef"],"type":"string"},"type":"array"},"is_active":{"type":"boolean"},"is_tracked_by_cust_job":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"required":["payment_schedule_type"],"type":"object"},"name":{"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_detail_type_value":{"type":"integer"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"required":["expense_account_ref","liability_account_ref","name","payment_template_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createPayrollItemWorkersCompensation_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create payroll item workers compensation","tags":["Payroll Item Workers Compensations"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updatePayrollItemWorkersCompensation_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollItemWorkersCompensationModRq`. The `payroll_item_workers_compensation_mod` wrapper from qbXML is also accepted.\n\nIntuit's reference: [PayrollItemWorkersCompensationMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollitemworkerscompensationmod).","operationId":"updatePayrollItemWorkersCompensation","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Workers Comp","vendor_ref":{"full_name":"Northwind Supplies"}},"schema":{"properties":{"edit_sequence":{"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["EditSequence","ExpenseAccountRef","IsActive","IsTrackedByCustJob","LiabilityAccountRef","LiabilityPaymentSchedule","ListID","Name","PaymentTemplateRef","PayrollItemDetailTypeValue","TimeCreated","TimeModified","VendorAccountNumber","VendorRef"],"type":"string"},"type":"array"},"is_active":{"type":"boolean"},"is_tracked_by_cust_job":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"required":["payment_schedule_type"],"type":"object"},"list_id":{"type":"string"},"name":{"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_detail_type_value":{"type":"integer"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updatePayrollItemWorkersCompensation_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update payroll item workers compensation","tags":["Payroll Item Workers Compensations"]}},"/connections/{connection_id}/sales-tax-return-lines":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listSalesTaxReturnLines_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SalesTaxReturnLineQueryRq`, from qbXML 8.0.\n\nIntuit's reference: [SalesTaxReturnLineQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/salestaxreturnlinequery).","operationId":"listSalesTaxReturnLines","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"in":"query","name":"tax_agency_vendor_ref","required":true,"schema":{"items":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listSalesTaxReturnLines_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List sales tax return lines","tags":["Sales Tax Return Lines"]}},"/connections/{connection_id}/vendors":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listVendors_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `VendorQueryRq`.\n\nQueries for the specified vendor or set of vendors.\n\nIntuit's reference: [VendorQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/vendorquery).","operationId":"listVendors","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `full_name` or `list_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filter according to class.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AccountNumber","AdditionalContactRef","AdditionalNotesRet","AltContact","AltPhone","Balance","BillingRateRef","Cc","ClassRef","CompanyName","Contact","ContactsRet","CreditLimit","CurrencyRef","DataExtRet","EditSequence","Email","ExternalGUID","Fax","FirstName","IsActive","IsSalesTaxAgency","IsTaxAgency","IsTaxOnTax","IsTaxTrackedOnPurchases","IsTaxTrackedOnSales","IsVendorEligibleFor1099","JobTitle","LastName","ListID","MiddleName","Mobile","Name","NameOnCheck","Notes","Pager","Phone","PrefillAccountRef","ReportingPeriod","SalesTaxCodeRef","SalesTaxCountry","SalesTaxReturnRef","Salutation","ShipAddress","Suffix","TaxOnPurchasesAccountRef","TaxOnSalesAccountRef","TaxRegistrationNumber","TermsRef","TimeCreated","TimeModified","VendorAddress","VendorAddressBlock","VendorTaxIdent","VendorTypeRef"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Filters according to total balance. Total balance includes the balance for all subaccounts; for example, a customer’s TotalBalance would include all the jobs for that customer.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"total_balance_filter","required":false,"schema":{"properties":{"amount":{"description":"The monetary amount to which Operator refers.","type":"number"},"operator":{"description":"Indicates whether to filter for amounts that are less than, equal to or less than, exactly equal to, greater than, or equal to or greater than the given Amount.","enum":["Equal","GreaterThan","GreaterThanEqual","LessThan","LessThanEqual"],"type":"string"}},"required":["amount","operator"],"type":"object"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listVendors_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List vendors","tags":["Vendors"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createVendor_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `VendorAddRq`. The `vendor_add` wrapper from qbXML is also accepted.\n\nAdds a vendor: a person or company the business buys from, including its banks and tax agencies. `name` is required. QuickBooks keeps vendors, customers, employees and other names in one name space, so a name any of them already uses fails with 3100 `name_in_use`.\n\nIntuit's reference: [VendorAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/vendoradd).","operationId":"createVendor","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"company_name":"Northwind Supplies","email":"orders@northwind.example","name":"Northwind Supplies","phone":"555-0100"},"schema":{"properties":{"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in ShipAddressBlock or BillAddressBlock.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"mobile":{"type":"string"},"tax_on_sales_account_ref":{"description":"Account used for taxes on sales in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"prefill_account_ref":{"items":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"type":"array"},"is_sales_tax_agency":{"description":"Indicates whether the entity is a sales tax agency.","type":"boolean"},"is_tax_on_tax":{"description":"For vendor in CA or UK, is there tax charged on top of tax.","type":"boolean"},"open_balance":{"description":"The opening balance of this vendor’s account. A positive number indicates money owed to this vendor.","type":"number"},"fax":{"description":"Fax number.","type":"string"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"vendor_type_ref":{"description":"Vendor types allow business owners to categorize vendors in ways that are meaningful for their businesses. For example, a vendor type might indicate which industry a vendor represents, or which part of the country a vendor is in. A `vendor_type_ref` aggregate refers to one of the types on the VendorType list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_tax_tracked_on_sales":{"description":"This flag is used for CA or UK and whether tax is tracked on sales.","type":"boolean"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"vendor_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"reporting_period":{"description":"Vendor reporting period for CA or UK. This can be monthly or quarterly.","enum":["Monthly","Quarterly"],"type":"string"},"alt_contact":{"description":"The name of an alternate contact person for a vendor, customer, or “other name” entry.","type":"string"},"additional_notes":{"items":{"properties":{"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"}},"required":["note"],"type":"object"},"type":"array"},"billing_rate_ref":{"description":"Billing rates are used to override the service item rate in a time transaction (TimeTrackingAdd) based on the employee or vendor performing the work. Billing rates are assigned to an employee or a vendor to specify overrides to service items.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_limit":{"description":"Set and returned as a positive number that indicates a customer’s or vendor’s credit limit. If no value has been defined, there is no credit limit.","type":"number"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"email":{"description":"E-mail address.","type":"string"},"tax_on_purchases_account_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_vendor_eligible_for1099":{"description":"If `is_vendor_eligible_for1099` is set to true, `vendor_tax_ident` and `vendor_address` are required in a vendor add request message. Otherwise, `vendor_tax_ident` and `vendor_address` are optional.","type":"boolean"},"contacts":{"items":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"required":["contact_name","contact_value"],"type":"object"},"type":"array"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"}},"required":["first_name"],"type":"object"},"type":"array"},"sales_tax_return_ref":{"description":"Sales tax return information.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"phone":{"description":"The telephone number.","type":"string"},"vendor_tax_ident":{"description":"A character string that identifies a vendor.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"name_on_check":{"description":"The vendor’s name as it will appear on checks sent to the vendor. (Corresponds in the QuickBooks user interface to the “Print on Check as” field of the Edit Vendor and New Vendor windows.)","type":"string"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"cc":{"description":"Email address that would be carbon copied or CC.","type":"string"},"suffix":{"type":"string"},"open_balance_date":{"description":"The date of the opening balance for this vendor.","format":"date","type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_country":{"description":"The country that sales tax is collected for.","enum":["Australia","Canada","UK","US"],"type":"string"},"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"required":["contact_name","contact_value"],"type":"object"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"pager":{"type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_tax_tracked_on_purchases":{"description":"This flag is used for CA or UK and whether tax is tracked on purchases.","type":"boolean"},"tax_registration_number":{"description":"The tax registration number used in CA and UK.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"notes":{"description":"Additional information about this vendor.","type":"string"},"include_ret_element":{"items":{"enum":["AccountNumber","AdditionalContactRef","AdditionalNotesRet","AltContact","AltPhone","Balance","BillingRateRef","Cc","ClassRef","CompanyName","Contact","ContactsRet","CreditLimit","CurrencyRef","DataExtRet","EditSequence","Email","ExternalGUID","Fax","FirstName","IsActive","IsSalesTaxAgency","IsTaxAgency","IsTaxOnTax","IsTaxTrackedOnPurchases","IsTaxTrackedOnSales","IsVendorEligibleFor1099","JobTitle","LastName","ListID","MiddleName","Mobile","Name","NameOnCheck","Notes","OwnerID","Pager","Phone","PrefillAccountRef","ReportingPeriod","SalesTaxCodeRef","SalesTaxCountry","SalesTaxReturnRef","Salutation","ShipAddress","Suffix","TaxOnPurchasesAccountRef","TaxOnSalesAccountRef","TaxRegistrationNumber","TermsRef","TimeCreated","TimeModified","TxnID","TxnNumber","VendorAddress","VendorAddressBlock","VendorTaxIdent","VendorTypeRef"],"type":"string"},"type":"array"},"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createVendor_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create vendor","tags":["Vendors"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateVendor_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `VendorModRq`. The `vendor_mod` wrapper from qbXML is also accepted.\n\nModifies a vendor.\n\nIntuit's reference: [VendorMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/vendormod).","operationId":"updateVendor","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"company_name":"Northwind Supplies","edit_sequence":"1700000000","email":"orders@northwind.example","list_id":"80000001-1700000000","name":"Northwind Supplies","phone":"555-0100"},"schema":{"properties":{"additional_notes_mod":{"items":{"properties":{"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"note_id":{"description":"The ID of the note.","type":"integer"}},"required":["note","note_id"],"type":"object"},"type":"array"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"ship_address":{"description":"This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in ShipAddressBlock or BillAddressBlock.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"mobile":{"type":"string"},"tax_on_sales_account_ref":{"description":"Account used for taxes on sales in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"contacts_mod":{"items":{"properties":{"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"required":["contact_name","contact_value"],"type":"object"},"type":"array"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"}},"required":["first_name"],"type":"object"},"type":"array"},"prefill_account_ref":{"items":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"type":"array"},"is_sales_tax_agency":{"description":"Indicates whether the entity is a sales tax agency.","type":"boolean"},"is_tax_on_tax":{"description":"For vendor in CA or UK, is there tax charged on top of tax.","type":"boolean"},"fax":{"description":"Fax number.","type":"string"},"company_name":{"description":"The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)","type":"string"},"vendor_type_ref":{"description":"Vendor types allow business owners to categorize vendors in ways that are meaningful for their businesses. For example, a vendor type might indicate which industry a vendor represents, or which part of the country a vendor is in. A `vendor_type_ref` aggregate refers to one of the types on the VendorType list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_tax_tracked_on_sales":{"description":"This flag is used for CA or UK and whether tax is tracked on sales.","type":"boolean"},"contact":{"description":"The name of a contact person for a customer or vendor.","type":"string"},"vendor_address":{"description":"If an address request fails, some combination of address fields might be too long.","properties":{"addr1":{"description":"The first line of an address.","type":"string"},"addr2":{"description":"The second line of an address (if a second line is needed).","type":"string"},"addr3":{"description":"The third line of an address (if a third line is needed).","type":"string"},"addr4":{"description":"The fourth line of an address (if a fourth line is needed).","type":"string"},"addr5":{"description":"The fifth line of an address (if a fifth line is needed).","type":"string"},"city":{"description":"The city name in an address.","type":"string"},"country":{"description":"The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)","type":"string"},"note":{"description":"In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.","type":"string"},"postal_code":{"description":"The postal code in an address.","type":"string"},"state":{"description":"The state name in an address.","type":"string"}},"type":"object"},"reporting_period":{"description":"Vendor reporting period for CA or UK. This can be monthly or quarterly.","enum":["Monthly","Quarterly"],"type":"string"},"alt_contact":{"description":"The name of an alternate contact person for a vendor, customer, or “other name” entry.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"billing_rate_ref":{"description":"Billing rates are used to override the service item rate in a time transaction (TimeTrackingAdd) based on the employee or vendor performing the work. Billing rates are assigned to an employee or a vendor to specify overrides to service items.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"credit_limit":{"description":"Set and returned as a positive number that indicates a customer’s or vendor’s credit limit. If no value has been defined, there is no credit limit.","type":"number"},"job_title":{"description":"The job title of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"terms_ref":{"description":"Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"email":{"description":"E-mail address.","type":"string"},"tax_on_purchases_account_ref":{"description":"Account used for taxes on purchases in CA or UK.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_vendor_eligible_for1099":{"description":"If `is_vendor_eligible_for1099` is set to true, `vendor_tax_ident` and `vendor_address` are required in a vendor add request message. Otherwise, `vendor_tax_ident` and `vendor_address` are optional.","type":"boolean"},"sales_tax_return_ref":{"description":"Sales tax return information.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"salutation":{"description":"A formal reference, such as Mr. or Dr., that precedes a name.","type":"string"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"phone":{"description":"The telephone number.","type":"string"},"vendor_tax_ident":{"description":"A character string that identifies a vendor.","type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"name_on_check":{"description":"The vendor’s name as it will appear on checks sent to the vendor. (Corresponds in the QuickBooks user interface to the “Print on Check as” field of the Edit Vendor and New Vendor windows.)","type":"string"},"alt_phone":{"description":"A telephone number given as an alternative to Phone.","type":"string"},"middle_name":{"description":"The middle name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"last_name":{"description":"The last name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"cc":{"description":"Email address that would be carbon copied or CC.","type":"string"},"suffix":{"type":"string"},"currency_ref":{"description":"A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_country":{"description":"The country that sales tax is collected for.","enum":["Australia","Canada","UK","US"],"type":"string"},"additional_contact_ref":{"items":{"properties":{"contact_name":{"description":"The name of the contact.","type":"string"},"contact_value":{"description":"The value of the contact field.","type":"string"}},"required":["contact_name","contact_value"],"type":"object"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"pager":{"type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"is_tax_tracked_on_purchases":{"description":"This flag is used for CA or UK and whether tax is tracked on purchases.","type":"boolean"},"tax_registration_number":{"description":"The tax registration number used in CA and UK.","type":"string"},"first_name":{"description":"The first name of a customer, vendor, employee, or person on the “other names” list.","type":"string"},"notes":{"description":"Additional information about this vendor.","type":"string"},"include_ret_element":{"items":{"enum":["AccountNumber","AdditionalContactRef","AdditionalNotesRet","AltContact","AltPhone","Balance","BillingRateRef","Cc","ClassRef","CompanyName","Contact","ContactsRet","CreditLimit","CurrencyRef","DataExtRet","EditSequence","Email","ExternalGUID","Fax","FirstName","IsActive","IsSalesTaxAgency","IsTaxAgency","IsTaxOnTax","IsTaxTrackedOnPurchases","IsTaxTrackedOnSales","IsVendorEligibleFor1099","JobTitle","LastName","ListID","MiddleName","Mobile","Name","NameOnCheck","Notes","OwnerID","Pager","Phone","PrefillAccountRef","ReportingPeriod","SalesTaxCodeRef","SalesTaxCountry","SalesTaxReturnRef","Salutation","ShipAddress","Suffix","TaxOnPurchasesAccountRef","TaxOnSalesAccountRef","TaxRegistrationNumber","TermsRef","TimeCreated","TimeModified","TxnID","TxnNumber","VendorAddress","VendorAddressBlock","VendorTaxIdent","VendorTypeRef"],"type":"string"},"type":"array"},"account_number":{"description":"Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.","type":"string"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateVendor_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update vendor","tags":["Vendors"]}},"/connections/{connection_id}/name-index":{"post":{"callbacks":{"name_index":{"{$request.body#/webhook_url}":{"post":{"description":"Sent once, when the build this opt-in waited for ends: `name_index.ready` or `name_index.failed`. Signed with `X-QUBE-Signature` like every other webhook (see the Webhooks guide). It names the connection and where its index stands, never a record.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NameIndexWebhookPayload"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours; after the last attempt, your organization's owners are emailed."}},"summary":"The name index is ready, or its build gave up"}}}},"description":"Has QuBe Sync build the connection's name index now, so it's ready before your first match, and tells you when it is. QuBe Sync reads the names in the connection's lists from QuickBooks itself, a step at a time, as the Web Connector checks in, and your own requests always go first. That takes a few Web Connector sessions, more on a large company file.\n\nWhile it builds the answer is `202`. Pass a `webhook_url` to be sent `name_index.ready` once it's in, or `name_index.failed` if the build gives up (see the callback). Calling this again while it builds replaces the `webhook_url`, and starts nothing more. On an index that's already `ready` the answer is `200`, and nothing is sent. So it's safe to repeat, and takes no `Idempotency-Key`.\n\nOnly `realtime` and `simulated` connections can have an index (422 `matching_requires_realtime`). An index is kept current while it was used in the last 7 days, and deleted after 30 days unused: a match counts as a use, and so does this.","operationId":"buildNameIndex","parameters":[{"description":"The connection to act on.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"example":{"webhook_url":"https://your-app.example/webhooks/qube"},"schema":{"additionalProperties":false,"properties":{"webhook_url":{"description":"Where to send `name_index.ready` or `name_index.failed` when the build ends. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","example":"https://your-app.example/webhooks/qube","format":"uri","maxLength":2048,"type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"example":{"name_index":{"as_of":"2026-10-11T14:02:10Z","records":1240,"state":"ready"}},"schema":{"properties":{"name_index":{"$ref":"#/components/schemas/NameIndex"}},"required":["name_index"],"type":"object"}}},"description":"The index is ready: match away. Nothing is sent to `webhook_url`."},"202":{"content":{"application/json":{"example":{"name_index":{"as_of":null,"records":0,"state":"building"}},"schema":{"properties":{"name_index":{"$ref":"#/components/schemas/NameIndex"}},"required":["name_index"],"type":"object"}}},"description":"The index is being built: this call started it, or it was already under way. `webhook_url`, if you sent one, will be told when it ends."},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"content":{"application/json":{"examples":{"invalid_webhook_url":{"summary":"A webhook_url webhooks can't go to","value":{"errors":{"webhook_url":["may not contain a username or password"]}}},"matching_requires_realtime":{"summary":"A standard connection","value":{"errors":{"code":"matching_requires_realtime","detail":"Matching needs a realtime or simulated connection, and this one is standard. Upgrade it to realtime from its page in the dashboard; in a sandbox app that costs nothing, since sandbox apps aren't billed. A simulated connection matches against the simulator's company file."}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"`matching_requires_realtime`: the connection is `standard`, which has no name index. Or the body was refused field by field: a `webhook_url` that isn't an absolute http or https URL, carries a username or password, is longer than 2048 characters, or (in production) points at localhost or a private address, or a parameter it doesn't take."}},"security":[{"apiKey":[]}],"summary":"Opt in to matching","tags":["Matching"]}},"/connections/{connection_id}/payroll-item-company-contributions":{"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createPayrollItemCompanyContribution_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollItemCompanyContributionAddRq`. The `payroll_item_company_contribution_add` wrapper from qbXML is also accepted.\n\nIntuit's reference: [PayrollItemCompanyContributionAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollitemcompanycontributionadd).","operationId":"createPayrollItemCompanyContribution","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"expense_account_ref":{"full_name":"Payroll Expenses"},"liability_account_ref":{"full_name":"Payroll Liabilities"},"name":"401(k) Match","payment_template_ref":{"full_name":"Example"},"vendor_ref":{"full_name":"Northwind Supplies"}},"schema":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"calculated_based_on":{"enum":["HoursAll","HoursWorked","Quantity","Rate"],"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["CalculatedBasedOn","EditSequence","ExpenseAccountRef","IsActive","IsTrackedByCustJob","LiabilityAccountRef","LiabilityPaymentSchedule","Limit","LimitTimePeriod","ListID","Name","NetOrGross","PaymentTemplateRef","PayrollItemDetailTypeValue","Rate","RatePercent","Taxability","TimeCreated","TimeModified","VendorAccountNumber","VendorRef","W2TrackingTypeValue"],"type":"string"},"type":"array"},"is_active":{"type":"boolean"},"is_tracked_by_cust_job":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"required":["payment_schedule_type"],"type":"object"},"limit":{"type":"number"},"limit_time_period":{"enum":["Annual","Forever"],"type":"string"},"name":{"type":"string"},"net_or_gross":{"enum":["Gross","Net"],"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"taxability":{"items":{"properties":{"is_tax_applied":{"type":"boolean"},"payroll_item_tax_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"required":["is_tax_applied","payroll_item_tax_ref"],"type":"object"},"type":"array"},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"w2_tracking_type_value":{"type":"integer"}},"required":["expense_account_ref","liability_account_ref","name","payment_template_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createPayrollItemCompanyContribution_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create payroll item company contribution","tags":["Payroll Item Company Contributions"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updatePayrollItemCompanyContribution_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollItemCompanyContributionModRq`. The `payroll_item_company_contribution_mod` wrapper from qbXML is also accepted.\n\nIntuit's reference: [PayrollItemCompanyContributionMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollitemcompanycontributionmod).","operationId":"updatePayrollItemCompanyContribution","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"401(k) Match","vendor_ref":{"full_name":"Northwind Supplies"}},"schema":{"not":{"anyOf":[{"required":["rate","rate_percent"]}]},"properties":{"calculated_based_on":{"enum":["HoursAll","HoursWorked","Quantity","Rate"],"type":"string"},"edit_sequence":{"type":"string"},"expense_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"include_ret_element":{"items":{"enum":["CalculatedBasedOn","EditSequence","ExpenseAccountRef","IsActive","IsTrackedByCustJob","LiabilityAccountRef","LiabilityPaymentSchedule","Limit","LimitTimePeriod","ListID","Name","NetOrGross","PaymentTemplateRef","PayrollItemDetailTypeValue","Rate","RatePercent","Taxability","TimeCreated","TimeModified","VendorAccountNumber","VendorRef","W2TrackingTypeValue"],"type":"string"},"type":"array"},"is_active":{"type":"boolean"},"is_tracked_by_cust_job":{"type":"boolean"},"liability_account_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"liability_payment_schedule":{"properties":{"payment_due_date":{"format":"date","type":"string"},"payment_due_num_days_after":{"type":"integer"},"payment_schedule_type":{"enum":["Empty","FederalMonthly","FederalNextDay","FederalQuarterly","FederalSemiweekly","Monthly","Quarterly","Semiweekly","Weekly","Yearly"],"type":"string"}},"required":["payment_schedule_type"],"type":"object"},"limit":{"type":"number"},"limit_time_period":{"enum":["Annual","Forever"],"type":"string"},"list_id":{"type":"string"},"name":{"type":"string"},"net_or_gross":{"enum":["Gross","Net"],"type":"string"},"payment_template_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"payroll_item_detail_type_value":{"type":"integer"},"rate":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"rate_percent":{"description":"Choose at most one of: `rate`, or `rate_percent`.","type":"number"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"taxability":{"items":{"properties":{"is_tax_applied":{"type":"boolean"},"payroll_item_tax_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"}},"required":["is_tax_applied","payroll_item_tax_ref"],"type":"object"},"type":"array"},"vendor_account_number":{"type":"string"},"vendor_ref":{"properties":{"full_name":{"type":"string"},"list_id":{"type":"string"}},"type":"object"},"w2_tracking_type_value":{"type":"integer"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updatePayrollItemCompanyContribution_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update payroll item company contribution","tags":["Payroll Item Company Contributions"]}},"/connections/{connection_id}/workflow-runs":{"get":{"description":"Runs you started, newest first. A workflow a run calls runs as part of that run: it is never listed on its own, and what it does is reported on the run you started.","parameters":[{"description":"ID of the connection","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Only runs in this state","in":"query","name":"state","required":false,"schema":{"enum":["running","awaiting_input","completed","failed","cancelled"],"type":"string"}},{"description":"Only runs that ended this way: completed, failed, or a key the workflow declares.","in":"query","name":"outcome","required":false,"schema":{"type":"string"}},{"description":"Only runs started with this `reference`, exactly as you sent it. A reference is not unique: every run you started with it is listed.","in":"query","name":"reference","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/WorkflowRun"},"type":"array"}},"type":"object"}}},"description":"The most recent 100 runs, newest first"}},"security":[{"apiKey":[]}],"summary":"List workflow runs for a connection","tags":["Workflows"]},"post":{"description":"`input` is validated against the workflow's declared inputs before anything is queued, so a bad request body comes back as a 422 with paths rather than failing inside QuickBooks later. A draft workflow may only be run against a sandbox connection. The run is returned in the state it has reached: one that ends as it starts (a chart that fails before sending anything, or needs no QuickBooks request) is already `failed` or `completed`, and its `workflow_run.*` webhook can reach you before this response does. Send a `reference` -- your own label for this run, such as the id of the record it is about, and a new one for every run -- and save your record before you send this call: every webhook carries the `reference`, so one that arrives before this response still finds its record. Send an `Idempotency-Key`: if this response never reaches you, sending the call again with the same key answers with that run instead of starting another.\n\nWorkflows run on realtime connections, and on simulated ones. On a standard connection this is a 422 `realtime_required` with nothing stored, the `Idempotency-Key` included, so once the connection is upgraded to realtime (from its page in the dashboard: a connection's type can't be changed through the API) the same call starts the run. A realtime connection slowed to the standard pace, or with a downgrade scheduled, still runs workflows; once a downgrade takes effect, runs already going finish at the standard pace and new ones are refused.","parameters":[{"description":"ID of the connection","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"input":{"description":"Matches the workflow's own input_schema","type":"object"},"reference":{"description":"Your own label for the run, such as the id of the record it is about: kept exactly as sent, never changed, and returned on the run and in every webhook it sends (`reference`), so you can match a webhook to your record before you have the run's id. Not unique -- starting two runs with one reference is allowed, and `GET .../workflow-runs?reference=` lists both; `Idempotency-Key` is what makes a start happen once. Give every run its own (`order-1042-2` for a second run about `order-1042`): revisions count per run, so a second run's bodies, found by the first run's reference, would be skipped against the first run's revision. One that is empty, longer than 255 characters or not a string is a 422 field by field, `{\"errors\": {\"reference\": [...]}}`.","example":"order-1042","maxLength":255,"minLength":1,"type":"string"},"version":{"description":"Which chart to run: `published`, `working` or a version number. Only a choice on a sandbox connection: a production connection always runs the published version, and refuses `working` or a number with a 422.","type":"string"},"webhook_url":{"description":"An absolute http or https URL where the run's webhooks go: `workflow_run.awaiting_input`, its ending, and `workflow_run.notification` from notify states. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com. Required for a workflow that sends the app data (a notify state, its own or in a workflow it calls): without it, 422 `webhook_url_required`; one that breaks these rules is a 422 field by field, `{\"errors\": {\"webhook_url\": [...]}}`.","format":"uri","maxLength":2048,"type":"string"},"workflow":{"description":"The workflow's key","type":"string"}},"required":["workflow"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WorkflowRun"}},"type":"object"}}},"description":"The run was started","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No workflow with that key"},"422":{"content":{"application/json":{"examples":{"idempotency_key_reused":{"value":{"errors":"Idempotency-Key was already used for a different request (another method, path, query or body). A key stands for one request: send a new key with a new request."}},"invalid_body":{"value":{"errors":[{"message":"unknown parameter: \"customer_rf\"","path":"input.params"}]}},"invalid_input":{"value":{"errors":[{"message":"is required","path":"input.customer"}]}},"invalid_reference":{"value":{"errors":{"reference":["should be at most 255 character(s)"]}}},"invalid_webhook_url":{"value":{"errors":{"webhook_url":["may not contain a username or password"]}}},"realtime_required":{"value":{"errors":{"code":"realtime_required","detail":"Workflows run on realtime connections, and this connection is standard. Upgrade it to realtime from its page in the dashboard (Upgrade to realtime, under Speed); in a sandbox app that costs nothing, since sandbox apps aren't billed. A simulated connection runs workflows too."}}},"webhook_url_required":{"value":{"errors":"webhook_url_required: this workflow sends data to your app (customers_page at send_page), so a run of it needs a webhook_url to send it to"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The input did not validate (a list of `{path, message}` problems: an input's own, or, for a body the chart marks with `body_of`, a field the operation its sibling names doesn't take, `{\"path\": \"input.params\", \"message\": \"unknown parameter: \\\"customer_rf\\\"\"}`), or the connection is standard (`realtime_required`, as `{code, detail}`), or the run was refused in a sentence: `workflow_not_published`, a production connection asked for a `version` other than `published`, or `webhook_url_required: ...` -- the workflow, or one it calls, sends the app data from a notify state, and there was no `webhook_url` to send it to. A `webhook_url` that is not an absolute http or https URL, carries a username or password, or (in production) points at localhost or a private address is refused field by field: `{\"errors\": {\"webhook_url\": [...]}}`, and so is a `reference` that is empty, longer than 255 characters or not a string: `{\"errors\": {\"reference\": [...]}}`. An `Idempotency-Key` that isn't 1 to 255 printable ASCII characters, or that was already used for a different request, is refused in a sentence naming the header."}},"security":[{"apiKey":[]}],"summary":"Start a workflow run","tags":["Workflows"]}},"/connections/{connection_id}/vendor-credits":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listVendorCredits_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `VendorCreditQueryRq`.\n\nQueries for the specified vendor credit or set of credits.\n\nIntuit's reference: [VendorCreditQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/vendorcreditquery).","operationId":"listVendorCredits","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items` or `include_linked_txns`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"account_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Filters by the specified currency.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"currency_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"}],"type":"object"}},{"description":"An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"entity_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.","in":"query","name":"include_line_items","required":false,"schema":{"type":"boolean"}},{"description":"If you set `include_linked_txns` to true, then the returned object will include a list of all the transactions linked to the queried object. (This list is similar to the History view of a transaction in the user interface, but not identical, as the SDK list contains only linked transactions, not items.) Each linked transaction will be represented by a `linked_txn` aggregate.","in":"query","name":"include_linked_txns","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["APAccountRef","CreditAmount","CreditAmountInHomeCurrency","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExpenseLineRet","ExternalGUID","IsTaxIncluded","ItemGroupLineRet","ItemLineRet","LinkedTxn","Memo","OpenAmount","RefNumber","SalesTaxCodeRef","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber","VendorRef"],"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"modified_date_range_filter","required":false,"schema":{"properties":{"from_modified_date":{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.","format":"date-time","type":"string"},"to_modified_date":{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).","format":"date-time","type":"string"}},"type":"object"}},{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_case_sensitive","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"}},"required":["match_criterion","ref_number"],"type":"object"}},{"description":"Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"ref_number_range_filter","required":false,"schema":{"properties":{"from_ref_number":{"description":"The first `ref_number` in the search range. If `from_ref_number` is omitted, the range will begin with first number on the list.","type":"string"},"to_ref_number":{"description":"The final `ref_number` in the search range. If `to_ref_number` is omitted, the range will end with last number on the list.","type":"string"}},"type":"object"}},{"description":"Filters according to the original transaction dates.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_date_range_filter","required":false,"schema":{"oneOf":[{"not":{"properties":{"from_txn_date":false,"to_txn_date":false}},"properties":{"from_txn_date":{"description":"Selects transactions created on or after this date. Both `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).","format":"date","type":"string"},"to_txn_date":{"description":"Selects transactions created on or before this date. Both `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).","format":"date","type":"string"}},"title":"FromTxnDate + ToTxnDate","type":"object"},{"properties":{"date_macro":{"description":"`date_macro` filters by transaction date (not last-modified date). Do not combine `date_macro` with `from_modified_date`/`to_modified_date` in the same query filter set.","enum":["All","LastCalendarQuarter","LastCalendarQuarterToDate","LastCalendarYear","LastCalendarYearToDate","LastFiscalQuarter","LastFiscalQuarterToDate","LastFiscalYear","LastFiscalYearToDate","LastMonth","LastMonthToDate","LastWeek","LastWeekToDate","NextCalendarQuarter","NextCalendarYear","NextFiscalQuarter","NextFiscalYear","NextFourWeeks","NextMonth","NextWeek","ThisCalendarQuarter","ThisCalendarQuarterToDate","ThisCalendarYear","ThisCalendarYearToDate","ThisFiscalQuarter","ThisFiscalQuarterToDate","ThisFiscalYear","ThisFiscalYearToDate","ThisMonth","ThisMonthToDate","ThisWeek","ThisWeekToDate","Today","Yesterday"],"type":"string"}},"required":["date_macro"],"title":"DateMacro","type":"object"}],"type":"object"}},{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.\n\nChoose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.","in":"query","name":"txn_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listVendorCredits_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List vendor credits","tags":["Vendor Credits"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createVendorCredit_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `VendorCreditAddRq`. The `vendor_credit_add` wrapper from qbXML is also accepted.\n\nAdds a vendor credit. A vendor credit is also known as a “bill credit”. That is, it is a credit that a vendor owes you because you overpaid your bill, returned merchandise, or for some other reason. The VendorCredit is referenced in a BilPayment transaction, inside the SetCredit aggregate. A VendorCredit shouldn’t be confused with a Credit Memo, which is something you owe your customer and which is referenced in a ReceivePayment request.\n\nIntuit's reference: [VendorCreditAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/vendorcreditadd).","operationId":"createVendorCredit","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"item_line_add":[{"cost":60.0,"desc":"Blue widget, large","item_ref":{"full_name":"Widget"},"quantity":2}],"memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","vendor_ref":{"full_name":"Northwind Supplies"}},"schema":{"properties":{"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_add":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for `expense_line_add` it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"def_macro":{"description":"`def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.","type":"string"},"memo":{"description":"Appears in the A/P register and in reports that include this credit.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"}},"type":"object"},"type":"array"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["APAccountRef","CreditAmount","CreditAmountInHomeCurrency","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExpenseLineRet","ExternalGUID","IsTaxIncluded","ItemGroupLineRet","ItemLineRet","LinkedTxn","ListID","Memo","OpenAmount","OwnerID","RefNumber","SalesTaxCodeRef","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber","VendorRef"],"type":"string"},"type":"array"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_add":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_add` and `item_group_line_add` combine: any number of each. QuickBooks receives them in that order: every `item_line_add`, then every `item_group_line_add`.","items":{"properties":{"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["item_group_ref"],"type":"object"},"type":"array"},"item_line_add":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If `item_line_add` doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_add` and `item_group_line_add` combine: any number of each. QuickBooks receives them in that order: every `item_line_add`, then every `item_group_line_add`.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"data_ext":{"items":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_value":{"description":"The data in this field. The maximum length of `data_ext_value` will depend on the `data_ext_type` of this data extension. For example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of `data_ext_value` is 1KB.","type":"string"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"}},"required":["data_ext_name","data_ext_value","owner_id"],"type":"object"},"type":"array"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"link_to_txn":{"properties":{"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"required":["txn_id","txn_line_id"],"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"type":"object"},"type":"array"},"memo":{"description":"Appears in the A/P register and in reports that include this credit.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["vendor_ref"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createVendorCredit_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create vendor credit","tags":["Vendor Credits"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateVendorCredit_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `VendorCreditModRq`, from qbXML 8.0. The `vendor_credit_mod` wrapper from qbXML is also accepted.\n\nModifies a vendor credit. Be careful! If you modify ANY line item, you must fully re-construct the line item table as you want it because if you edit even a single line item, any line item that is NOT in the vendor credit mod will be omitted. For full details, see the QB SDK Programmer’s Guide ([PDF](https://developer.intuit.com/app/developer/logged-in-content/QBSDK_ProGuide.pdf), 9.6 MB) chapter on modifying and deleting transactions and list objects.\n\nA vendor credit is also known as a “bill credit”. That is, it is a credit that a vendor owes you because you overpaid your bill, returned merchandise, or for some other reason. The VendorCredit is referenced in a BilPayment transaction, inside the SetCredit aggregate.\n\nA VendorCredit shouldn’t be confused with a Credit Memo, which is something you owe your customer and which is referenced in a ReceivePayment request.\n\nIntuit's reference: [VendorCreditMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/vendorcreditmod).","operationId":"updateVendorCredit","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","memo":"Monthly service","ref_number":"1001","txn_date":"2026-01-15","txn_id":"1A2B-1700000000","vendor_ref":{"full_name":"Northwind Supplies"}},"schema":{"properties":{"ap_account_ref":{"description":"Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"clear_expense_lines":{"description":"Set `clear_expense_lines` to true to clear all the expense lines. To modify individual lines, use `expense_line_mod`.","type":"boolean"},"clear_item_lines":{"description":"Set `clear_item_lines` to true to clear all the item lines. To modify individual lines, use `item_line_mod`.","type":"boolean"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"exchange_rate":{"description":"`exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.","type":"number"},"expense_line_mod":{"items":{"properties":{"account_ref":{"description":"`account_ref` points to an account in the company file. If both `full_name` and `list_id` are provided, `full_name` is ignored. Meaning depends on context: for checks it is the funding account; for ExpenseLineAdd it may be required by accounting preferences; for credit-card transactions it identifies the bank or card account involved.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"memo":{"description":"Appears in the A/P register and in reports that include this credit.","type":"string"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"include_ret_element":{"items":{"enum":["APAccountRef","CreditAmount","CreditAmountInHomeCurrency","CurrencyRef","DataExtRet","EditSequence","ExchangeRate","ExpenseLineRet","ExternalGUID","IsTaxIncluded","ItemGroupLineRet","ItemLineRet","LinkedTxn","ListID","Memo","OpenAmount","OwnerID","RefNumber","SalesTaxCodeRef","TimeCreated","TimeModified","TxnDate","TxnID","TxnNumber","VendorRef"],"type":"string"},"type":"array"},"is_tax_included":{"description":"For future use with international versions of QuickBooks.","type":"boolean"},"item_group_line_mod":{"description":"Refers to items that are grouped together in QuickBooks for fast entry.\n\n`item_line_mod` and `item_group_line_mod` combine: any number of each. QuickBooks receives them in that order: every `item_line_mod`, then every `item_group_line_mod`.","items":{"properties":{"item_group_ref":{"description":"ItemGroup objects represent items that are grouped together for fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_line_mod":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"item_line_mod":{"description":"An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.\n\n`item_line_mod` and `item_group_line_mod` combine: any number of each. QuickBooks receives them in that order: every `item_line_mod`, then every `item_group_line_mod`.","items":{"not":{"anyOf":[{"required":["serial_number","lot_number"]}]},"properties":{"amount":{"description":"A monetary amount.","type":"number"},"billable_status":{"description":"The billing status of this item line or expense line.","enum":["Billable","HasBeenBilled","NotBillable"],"type":"string"},"class_ref":{"description":"Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"cost":{"description":"If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.","type":"number"},"customer_ref":{"description":"`customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"desc":{"description":"A descriptive text field.","type":"string"},"inventory_site_location_ref":{"description":"Location within the Inventory Site.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"inventory_site_ref":{"description":"Site where inventory is located.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"item_ref":{"description":"`item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"lot_number":{"description":"The lot number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"override_item_account_ref":{"description":"Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"override_uom_set_ref":{"description":"When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you can’t change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"quantity":{"description":"On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.","type":"number"},"sales_rep_ref":{"description":"A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"serial_number":{"description":"The serial number of the asset.\n\nChoose at most one of: `serial_number`, or `lot_number`.","type":"string"},"tax_amount":{"type":"number"},"txn_line_id":{"description":"Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.","type":"string"},"unit_of_measure":{"description":"In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!","type":"string"}},"required":["txn_line_id"],"type":"object"},"type":"array"},"memo":{"description":"Appears in the A/P register and in reports that include this credit.","type":"string"},"ref_number":{"description":"`ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"},"sales_tax_code_ref":{"description":"`sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"txn_date":{"description":"The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.","format":"date","type":"string"},"txn_id":{"description":"`txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.","type":"string"},"vendor_ref":{"description":"A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.","properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"}},"required":["edit_sequence","txn_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateVendorCredit_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update vendor credit","tags":["Vendor Credits"]}},"/connections/{connection_id}/job-reports":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listJobReports_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `JobReportQueryRq`, from qbXML 2.0.\n\nThe Job Reports category includes both summary and transaction detail reports. They can be customized only by date range, by column summarization, and by common filters. Some job reports require a customer:job reference in order to work\n\nIntuit's reference: [JobReportQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/jobreportquery).","operationId":"listJobReports","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Set `display_report` to true to display this report within the QuickBooks UI. (Default is false.) If you want the request to display the report without returning any data to your application, set the responseData attribute to includeNone.","in":"query","name":"display_report","required":false,"schema":{"type":"boolean"}},{"description":"The default value is false, which means that the report won’t include any subcolumn information. To include all available types of subcolumns for this report, set `include_subcolumns` to true. The SDK won’t return subcolumn information for data that can be easily computed. (For example, the SDK doesn’t return the “percent of row” column.)","in":"query","name":"include_subcolumns","required":false,"schema":{"type":"boolean"}},{"description":"The type of job report.","in":"query","name":"job_report_type","required":true,"schema":{"enum":["ItemEstimatesVsActuals","ItemProfitability","JobEstimatesVsActualsDetail","JobEstimatesVsActualsSummary","JobProfitabilityDetail","JobProfitabilitySummary"],"type":"string"}},{"description":"Allows you to query for a specified account type or for specific list elements.","in":"query","name":"report_account_filter","required":false,"schema":{"oneOf":[{"properties":{"account_type_filter":{"description":"Allows you to report on a specific account type.","enum":["APAndSalesTax","APOrCreditCard","ARAndAP","AccountsPayable","AccountsReceivable","AllowedFor1099","Asset","BalanceSheet","Bank","BankAndARAndAPAndUF","BankAndUF","CostOfSales","CreditCard","CurrentAsset","CurrentAssetAndExpense","CurrentLiability","Equity","EquityAndIncomeAndExpense","ExpenseAndOtherExpense","FixedAsset","IncomeAndExpense","IncomeAndOtherIncome","Liability","LiabilityAndEquity","LongTermLiability","NonPosting","OrdinaryExpense","OrdinaryIncome","OrdinaryIncomeAndCOGS","OrdinaryIncomeAndExpense","OtherAsset","OtherCurrentAsset","OtherCurrentLiability","OtherExpense","OtherIncome","OtherIncomeOrExpense"],"type":"string"}},"required":["account_type_filter"],"title":"AccountTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Allows you to query for a specified class. Classes can be used to separate transactions into meaningful categories. (For example, transactions could be classified according to department, business location, or type of work.) In QuickBooks, class tracking is off by default.","in":"query","name":"report_class_filter","required":false,"schema":{"oneOf":[{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"The time period covered by this report.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_date_macro","required":false,"schema":{"enum":["All","LastMonth","LastMonthToDate","LastQuarter","LastQuarterToDate","LastWeek","LastWeekToDate","LastYear","LastYearToDate","NextFourWeeks","NextMonth","NextQuarter","NextWeek","NextYear","ThisMonth","ThisMonthToDate","ThisQuarter","ThisQuarterToDate","ThisWeek","ThisWeekToDate","ThisYear","ThisYearToDate","Today","Yesterday"],"type":"string"}},{"description":"The level of detail to include in the report.","in":"query","name":"report_detail_level_filter","required":false,"schema":{"enum":["All","AllExceptSummary","SummaryOnly"],"type":"string"}},{"description":"Allows you to query for a specified name type (customer, employee, vendor, or other) or query for specific list elements.","in":"query","name":"report_entity_filter","required":false,"schema":{"oneOf":[{"properties":{"entity_type_filter":{"description":"Allows you to report on a specific name type.","enum":["Customer","Employee","OtherName","Vendor"],"type":"string"}},"required":["entity_type_filter"],"title":"EntityTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Allows you to query for a specified item type (for example, discount, inventory, or non-inventory) or query for specific list elements.","in":"query","name":"report_item_filter","required":false,"schema":{"oneOf":[{"properties":{"item_type_filter":{"description":"Allows you to report on a specific item type.","enum":["AllExceptFixedAsset","Assembly","Discount","FixedAsset","Inventory","InventoryAndAssembly","NonInventory","OtherCharge","Payment","Sales","SalesTax","Service"],"type":"string"}},"required":["item_type_filter"],"title":"ItemTypeFilter","type":"object"},{"properties":{"list_id":{"items":{"type":"string"},"type":"array"}},"required":["list_id"],"title":"ListID","type":"object"},{"properties":{"full_name":{"items":{"type":"string"},"type":"array"}},"required":["full_name"],"title":"FullName","type":"object"},{"properties":{"list_id_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants.","type":"string"}},"required":["list_id_with_children"],"title":"ListIDWithChildren","type":"object"},{"properties":{"full_name_with_children":{"description":"Allows you to filter for data that relates to the specified object and its descendants. For names that don’t have children, `full_name_with_children` is exactly the same as `full_name`.","type":"string"}},"required":["full_name_with_children"],"title":"FullNameWithChildren","type":"object"}],"type":"object"}},{"description":"Returns reports that were modified between these two dates (inclusive). The range of acceptable dates for both `from_report_modified_date` and `to_report_modified_date` is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).\n\nChoose at most one of: `report_modified_date_range_filter`, or `report_modified_date_range_macro`.","in":"query","name":"report_modified_date_range_filter","required":false,"schema":{"properties":{"from_report_modified_date":{"description":"Selects information from this date and later. The range of acceptable dates is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).","format":"date","type":"string"},"to_report_modified_date":{"description":"Selects information created on this date or earlier. The range of acceptable dates is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).","format":"date","type":"string"}},"type":"object"}},{"description":"The time period covered by this report.\n\nChoose at most one of: `report_modified_date_range_filter`, or `report_modified_date_range_macro`.","in":"query","name":"report_modified_date_range_macro","required":false,"schema":{"enum":["All","LastMonth","LastMonthToDate","LastQuarter","LastQuarterToDate","LastWeek","LastWeekToDate","LastYear","LastYearToDate","NextFourWeeks","NextMonth","NextQuarter","NextWeek","NextYear","ThisMonth","ThisMonthToDate","ThisQuarter","ThisQuarterToDate","ThisWeek","ThisWeekToDate","ThisYear","ThisYearToDate","Today","Yesterday"],"type":"string"}},{"description":"If you omit both `to_report_date` and `from_report_date`, the report will cover the current fiscal year to date.\n\nChoose at most one of: `report_period`, or `report_date_macro`.","in":"query","name":"report_period","required":false,"schema":{"properties":{"from_report_date":{"description":"Selects information from this date and later. The range of acceptable `from_report_date` and `to_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"},"to_report_date":{"description":"Selects information created on this date or earlier. The range of acceptable `to_report_date` and `from_report_date` values depends on how the report dates are determined. If the report dates are based on the dates of transactions, the range is 01/01/1901 to 12/31/9999.","format":"date","type":"string"}},"type":"object"}},{"description":"Allows you to query for posting reports, non-posting reports, or reports that are either one.","in":"query","name":"report_posting_status_filter","required":false,"schema":{"enum":["Either","NonPosting","Posting"],"type":"string"}},{"description":"Allows you to report on specific transaction types (for example, charge, check, deposit, or estimate).","in":"query","name":"report_txn_type_filter","required":false,"schema":{"properties":{"txn_type_filter":{"items":{"enum":["ARRefundCreditCard","All","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","CreditCardCharge","CreditCardCredit","CreditMemo","Deposit","Estimate","InventoryAdjustment","Invoice","ItemReceipt","JournalEntry","LiabilityAdjustment","Paycheck","PayrollLiabilityCheck","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Transfer","VendorCredit","YTDAdjustment"],"type":"string"},"type":"array"}},"required":["txn_type_filter"],"type":"object"}},{"description":"`summarize_columns_by` determines which data the report calculates and how the columns will be labeled across the top of the report. For example, if you set the value to scbTwoWeek, the report’s column labels might be “Feb 10-23, 02,” “Feb 24-Mar9, 02,” and so on.","in":"query","name":"summarize_columns_by","required":false,"schema":{"enum":["Account","BalanceSheet","Class","Customer","CustomerType","Day","Employee","FourWeek","HalfMonth","IncomeStatement","ItemDetail","ItemType","Month","Payee","PaymentMethod","PayrollItemDetail","PayrollYtdDetail","Quarter","SalesRep","SalesTaxCode","ShipMethod","Terms","TotalOnly","TwoWeek","Vendor","VendorType","Week","Year"],"type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listJobReports_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List job reports","tags":["Job Reports"]}},"/connections/{connection_id}/sales-tax-returns":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listSalesTaxReturns_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `SalesTaxReturnQueryRq`, from qbXML 8.0.\n\nIntuit's reference: [SalesTaxReturnQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/salestaxreturnquery).","operationId":"listSalesTaxReturns","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listSalesTaxReturns_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List sales tax returns","tags":["Sales Tax Returns"]}},"/workflows/{key}/versions":{"get":{"description":"Every version this workflow has published, newest first. A version is an immutable snapshot of the chart; `workflows.definition` stays the working copy. Runs on a production connection always execute the published version.","parameters":[{"description":"The workflow's stable key","in":"path","name":"key","required":true,"schema":{"pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/WorkflowVersionSummary"},"type":"array"}},"type":"object"}}},"description":"The version history"},"404":{"description":"No workflow with that key"}},"security":[{"apiKey":[]}],"summary":"A workflow's published versions","tags":["Workflows"]}},"/connections/{connection_id}/hosts":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listHosts_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `HostQueryRq`.\n\nA HostQueryRq request message returns information about the exact QuickBooks product and version with which you are communicating. Note: If you include an explicit end tag in a HostQueryRq request, you will receive an error if there is any space between the opening tag and the end tag. The following table shows valid and invalid ways of constructing this request:\n\n- Valid: `<hostqueryrq></hostqueryrq>` (no space between opening and closing tags)\n- Valid: `<hostqueryrq />` (combined opening and closing tag)\n- Invalid: `<hostqueryrq> </hostqueryrq>` (space between opening and closing tags)\n\nIntuit's reference: [HostQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/hostquery).","operationId":"listHosts","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use this aggregate if you want the query to return list capacity metadata for each object type in QuickBooks.","in":"query","name":"include_list_meta_data","required":false,"schema":{"properties":{"include_max_capacity":{"description":"Specify the value “true” to return max list limits for each object type, or “false” to not return these in the query response. By default, this is “false” for HostQuery.","type":"boolean"}},"required":["include_max_capacity"],"type":"object"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["Country","IsAutomaticLogin","ListMetaData","MajorVersion","MinorVersion","ProductName","QBFileMode","SupportedQBXMLVersion"],"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listHosts_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List hosts","tags":["Hosts"]}},"/connections/{connection_id}/item-sales-tax-groups":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listItemSalesTaxGroups_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemSalesTaxGroupQueryRq`.\n\nQueries for the specified sales tax group item or set of group items.\n\nIntuit's reference: [ItemSalesTaxGroupQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemsalestaxgroupquery).","operationId":"listItemSalesTaxGroups","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `full_name` or `list_id` every match comes back in one answer, so leave `iterator` out.","in":"query","name":"iterator","required":false,"schema":{"type":"boolean"}},{"description":"Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["BarCodeValue","DataExtRet","EditSequence","ExternalGUID","IsActive","ItemDesc","ItemSalesTaxRef","ListID","Name","TimeCreated","TimeModified"],"type":"string"},"type":"array"}},{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.\n\nThe page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"description":"The criterion to match.","enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"description":"The string to match.","type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Filters according to the object’s Name.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"description":"The first name or item in the search range. If `from_name` is omitted, the range will begin with first name on the list.","type":"string"},"to_name":{"description":"The final name or item in the search range. If `to_name` is omitted, the range will end with last name on the list.","type":"string"}},"type":"object"}},{"description":"Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listItemSalesTaxGroups_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List item sales tax groups","tags":["Item Sales Tax Groups"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createItemSalesTaxGroup_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemSalesTaxGroupAddRq`. The `item_sales_tax_group_add` wrapper from qbXML is also accepted.\n\nAdds a sales-tax group item, which is an item used for calculating two or more sales taxes grouped together and applied to the same sale. For example, local and state taxes could be tracked separately but applied to a sale as one tax. (Compare with the ItemSalesTaxAdd message.)\n\nSee also: [Line item taxes](https://docs.qubesync.com/quickbooks-notes#line-item-taxes).\n\nIntuit's reference: [ItemSalesTaxGroupAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemsalestaxgroupadd).","operationId":"createItemSalesTaxGroup","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"item_sales_tax_ref":[{"full_name":"State Sales Tax"}],"name":"Combined Sales Tax"},"schema":{"properties":{"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"external_guid":{"description":"Allows for the attachment of a user defined GUID value.","type":"string"},"include_ret_element":{"items":{"enum":["BarCodeValue","DataExtRet","EditSequence","ExternalGUID","IsActive","ItemDesc","ItemSalesTaxRef","ListID","Name","OwnerID","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"item_sales_tax_ref":{"items":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"type":"array"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["item_sales_tax_ref","name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createItemSalesTaxGroup_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create item sales tax group","tags":["Item Sales Tax Groups"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateItemSalesTaxGroup_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `ItemSalesTaxGroupModRq`, from qbXML 3.0. The `item_sales_tax_group_mod` wrapper from qbXML is also accepted.\n\nModifies an existing sales-tax group item.\n\nIntuit's reference: [ItemSalesTaxGroupMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/itemsalestaxgroupmod).","operationId":"updateItemSalesTaxGroup","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"edit_sequence":"1700000000","list_id":"80000001-1700000000","name":"Combined Sales Tax"},"schema":{"properties":{"bar_code":{"description":"Barcode reference information.","properties":{"allow_override":{"description":"Allows for barcode to be overridden for an item.","type":"boolean"},"assign_even_if_used":{"description":"Allow barcode to be assigned to item, even if already in use.","type":"boolean"},"bar_code_value":{"description":"Value of the barcode in the item.","type":"string"}},"type":"object"},"edit_sequence":{"description":"`edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.","type":"string"},"include_ret_element":{"items":{"enum":["BarCodeValue","DataExtRet","EditSequence","ExternalGUID","IsActive","ItemDesc","ItemSalesTaxRef","ListID","Name","OwnerID","TimeCreated","TimeModified","TxnID","TxnNumber"],"type":"string"},"type":"array"},"is_active":{"description":"If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.","type":"boolean"},"item_desc":{"description":"The description that will appear on a sales form when the item is used.","type":"string"},"item_sales_tax_ref":{"items":{"properties":{"full_name":{"description":"`full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.","type":"string"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"}},"type":"object"},"type":"array"},"list_id":{"description":"`list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list family, not across the company file: customers, vendors, employees and other names share one sequence, every item type shares another, and each other list has its own.","type":"string"},"name":{"description":"Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["edit_sequence","list_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateItemSalesTaxGroup_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update item sales tax group","tags":["Item Sales Tax Groups"]}},"/connections/{connection_id}/queued-requests/{id}/discard":{"post":{"description":"Withdraws a request your app no longer wants, before the Web Connector picks it up: one that is `waiting`, or `retryable` between tries. It becomes `discarded`, is never sent to QuickBooks, and a webhook with that state goes to its `webhook_url`. The request itself stays, so it can still be retrieved. A request the Web Connector already has (`ticketed` or `sent`) goes ahead regardless, and one that has ended can't be discarded: both answer 409.","operationId":"discardQueuedRequest","parameters":[{"description":"The connection to act on.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"The queued request.","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/QueuedRequest"}},"type":"object"}}},"description":"Discarded: the request, now `discarded`"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"content":{"application/json":{"schema":{"properties":{"errors":{"enum":["in_flight","already_finished"],"type":"string"}},"type":"object"}}},"description":"`in_flight`: the Web Connector already has the request, so it goes ahead. `already_finished`: the request has already ended."}},"security":[{"apiKey":[]}],"summary":"Discard a queued request","tags":["Queued Requests"]}},"/connections/{connection_id}/payroll-items":{"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listPayrollItems_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `PayrollItemQueryRq`.\n\nIntuit's reference: [PayrollItemQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/payrollitemquery).","operationId":"listPayrollItems","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"active_status","required":false,"schema":{"enum":["ActiveOnly","All","InactiveOnly"],"type":"string"}},{"description":"Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"from_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"full_name","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["CalculatedBasedOn","EditSequence","ExpenseAccountRef","IsActive","IsTrackedByCustJob","LiabilityAccountRef","LiabilityPaymentSchedule","Limit","LimitTimePeriod","ListID","Name","NetOrGross","OvertimeMultiplier","PaymentTemplateRef","PayrollItemDetailTypeValue","Rate","RateChange","RatePercent","State","TaxCalculatedBasedOn","Taxability","TimeCreated","TimeModified","VendorAccountNumber","VendorRef","W2TrackingTypeValue","WageType"],"type":"string"},"type":"array"}},{"description":"Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"list_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"QuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.\n\nChoose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"max_returned","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_filter","required":false,"schema":{"properties":{"match_criterion":{"enum":["Contains","EndsWith","StartsWith"],"type":"string"},"name":{"type":"string"}},"required":["match_criterion","name"],"type":"object"}},{"description":"Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"name_range_filter","required":false,"schema":{"properties":{"from_name":{"type":"string"},"to_name":{"type":"string"}},"type":"object"}},{"description":"Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.","in":"query","name":"to_modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listPayrollItems_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List payroll items","tags":["Payroll Items"]}},"/connections/{connection_id}/data-ext-defs":{"delete":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/deleteDataExtDef_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `DataExtDefDelRq`, from qbXML 2.0.\n\nDeletes the private data extension definition specified by `owner_id` and `data_ext_name`. This delete will be successful only for private data extensions.\n\nYou can’t use this to delete any custom field definition, whether the custom field was created by the user via the QB UI or via the SDK DataExtDefAdd request.\n\nThis request should be exercised with caution. Once you invoke this on your private extension, you won’t be able to re-add a private extension with that same name and `owner_id`. (If you want to re-use the name from a deleted definition, you’ll have to supply a different `owner_id`.)\n\nIntuit's reference: [DataExtDefDel](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/dataextdefdel).","operationId":"deleteDataExtDef","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"data_ext_name":"Color","owner_id":"0"},"schema":{"properties":{"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"owner_id":{"description":"`owner_id` identifies the extension owner. `owner_id` 0 means a public custom field visible in the QuickBooks UI. A GUID means a private app extension that is not shown in the UI. `owner_id` matching is case-insensitive. To share private extensions across apps, both apps must use the same `owner_id` and `data_ext_name`.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["data_ext_name","owner_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/deleteDataExtDef_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Delete data ext def","tags":["Data Ext Defs"]},"get":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/listDataExtDefs_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `DataExtDefQueryRq`, from qbXML 2.0.\n\nFinds the definitions of custom fields and private data extensions. Pass `owner_id` (0 for custom fields, your GUID for private extensions). Without it QuickBooks answers status 1 \"did not find a matching object\" even when definitions exist, so an empty answer there doesn't prove a field is missing (observed on QuickBooks Enterprise 24.0, 2026-10-03).\n\nIntuit's reference: [DataExtDefQuery](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/dataextdefquery).","operationId":"listDataExtDefs","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.","in":"query","name":"meta_data","required":false,"schema":{"enum":["MetaDataAndResponseData","MetaDataOnly","NoMetaData"],"type":"string"}},{"description":"Choose at most one of: `owner_id`, or `assign_to_object`.","in":"query","name":"assign_to_object","required":false,"schema":{"items":{"enum":["ARRefundCreditCard","Account","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","Company","CreditCardCharge","CreditCardCredit","CreditMemo","Customer","Deposit","Employee","Estimate","InventoryAdjustment","Invoice","Item","ItemReceipt","JournalEntry","OtherName","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Vendor","VendorCredit"],"type":"string"},"type":"array"}},{"in":"query","name":"include_ret_element","required":false,"schema":{"items":{"enum":["AssignToObject","DataExtFormatString","DataExtID","DataExtListRequire","DataExtName","DataExtTxnRequire","DataExtType","OwnerID"],"type":"string"},"type":"array"}},{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.\n\nChoose at most one of: `owner_id`, or `assign_to_object`.","in":"query","name":"owner_id","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/listDataExtDefs_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List data ext defs","tags":["Data Ext Defs"]},"post":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/createDataExtDef_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `DataExtDefAddRq`, from qbXML 2.0. The `data_ext_def_add` wrapper from qbXML is also accepted.\n\nThis request adds a data extension definition to the specified object type (e.g. Customer) so that extension data can be written to a particular object of that type (e.g., this customer, John Smith. A data extension definition must be created before data can be written to the data extension.\n\nNotice that a custom field data extension definition can be created either by using DataExtDefAdd or via the QuickBooks UI by the user specifying a custom field for an object. Only custom fields can be defined through the UI, however, not private data extensions.\n\nVia the SDK, you create a custom field definition by setting the `owner_id` to 0. You create a private data definition by setting `owner_id` to a GUID that only your application owns or shares with other applications. Custom fields are available and visible within the QuickBooks UI, whereas private data extensions are seen and used only by your own application or other applications that know the `owner_id` GUID.\n\nData is written to custom fields either via the SDK DataExtAdd/Mod requests or via the QuickBooks UI directly by the end user. Data is written to private data extensions only via the SDK DataExtAdd/Mod requests. You should be careful not to use private data extensions in transaction line items because queries won’t return that private data (use only custom fields on transaction line items).\n\nNotice that creating a custom field data extension definition for Customer and Item causes an automatic propagation of that definition to certain transaction objects. See “`assign_to_object`” for more details. A full description of this behavior and its usefulness is provided in the QB SDK Programmer’s Guide. DataExtDefAdd doesn’t cause any events to be generated.\n\nIntuit's reference: [DataExtDefAdd](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/dataextdefadd).","operationId":"createDataExtDef","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"data_ext_name":"Color","data_ext_type":"STR255TYPE","owner_id":"0"},"schema":{"properties":{"assign_to_object":{"items":{"enum":["ARRefundCreditCard","Account","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","Company","CreditCardCharge","CreditCardCredit","CreditMemo","Customer","Deposit","Employee","Estimate","InventoryAdjustment","Invoice","Item","ItemReceipt","JournalEntry","OtherName","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Vendor","VendorCredit"],"type":"string"},"type":"array"},"data_ext_format_string":{"description":"The string format required for the data extension.","type":"string"},"data_ext_list_require":{"description":"If `data_ext_list_require` is true, this data extension field is required to be entered in lists. The default value is false.","type":"boolean"},"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_txn_require":{"description":"If `data_ext_txn_require` is true, this data extension field is required to be entered in transaction. The default value is false.","type":"boolean"},"data_ext_type":{"description":"The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, `data_ext_type` must be detSTR255TYPE.","enum":["AMTTYPE","DATETIMETYPE","INTTYPE","PERCENTTYPE","PRICETYPE","QUANTYPE","STR1024TYPE","STR255TYPE"],"type":"string"},"include_ret_element":{"items":{"enum":["AssignToObject","DataExtFormatString","DataExtID","DataExtListRequire","DataExtName","DataExtTxnRequire","DataExtType","EditSequence","ExternalGUID","ListID","OwnerID","TxnID","TxnNumber"],"type":"string"},"type":"array"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["data_ext_name","data_ext_type","owner_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/createDataExtDef_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Create data ext def","tags":["Data Ext Defs"]},"put":{"callbacks":{"answered":{"{$request.query.webhook_url}":{"post":{"description":"Verify `X-QUBE-Signature`, answer 2xx within 5 seconds, then branch on `state`:\n\n* `response_received` -- QuickBooks accepted it: `response_json` is `status: \"success\"` with `data`, or, when there is nothing to show, QuickBooks' `message` (a query that matched nothing is a success, not an error). When QuickBooks carried it out but warned about something, `response_json.warning` has its `code` and `message`: `530`, for one, means a field you sent is not supported by the customer's QuickBooks and was not saved.\n* `error` -- it is over, and QuBe Sync won't try again. With `error.error_type` `quickbooks_business_error`, QuickBooks refused the request: `response_json` is `status: \"error\"`, and `response_json.error.code` is the status code to branch on. A `3200` (`stale_edit_sequence`: the record changed after you read it) usually comes with the record as it stands in `response_json.error.current`, its current `edit_sequence` included. Compare it with what you read first: when nobody else changed a field your update sets, re-apply your change and send it again with that `edit_sequence`; when someone did, ask your user which value wins rather than overwriting theirs (without `current`, query the record first). Otherwise QuickBooks never answered it: `xml_error` (the request itself was rejected, and will be again as sent), `outcome_unknown` (a write the Web Connector answered with an error in place of QuickBooks' answer: it may have been applied, so look in QuickBooks before sending it again) or `unexpected_error` (the Web Connector's log says more; a query can be sent again). A connection problem never ends here; it is `retryable`, below.\n* `retryable` -- the Web Connector could not get it into QuickBooks (QuickBooks was not running, the company file was not open or not this connection's, or a window in QuickBooks was in the way), so nothing was applied. QuBe Sync keeps trying on the Web Connector's runs, so don't resend: show the customer `error.user_message` so they can fix it. This webhook comes when the error first appears or changes, not on every try. If you no longer want the request, discard it (`POST /connections/{connection_id}/queued-requests/{id}/discard`).\n* `timed_out` -- no answer came back: the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `error.error_type` is `timed_out`.\n* `discarded` -- your app discarded it before the Web Connector picked it up. QuickBooks never got it, so nothing was applied. `error.error_type` is `discarded`, unless it was `retryable` when you discarded it: then `error` is still the connection error that held it up.\n\nAn iterated query sends one webhook per page, all with the same `id` and each with its own `page_request_id` and `page`; `iteration_state` is `done` on the last page, which can arrive before earlier ones, so the import is complete once every page from 1 to the `done` page's `page` has been handled. Deliveries can arrive out of order and, after a retry, more than once: key on `page_request_id` plus `state`. A `retryable` webhook is not final: the answer that follows carries the same `id` and `page_request_id` with a different `state`, and only a repeat of the same `state` is a duplicate. A body that would be over 1 MB comes without `response_xml`: `response_xml_omitted` is true, and `links.self` is where to GET it; `response_json` is always there.\n\nIf webhooks stop arriving altogether, the Web Connector on the customer's PC has most likely stopped calling in; requests wait until it does. Intuit's guide to its errors: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US\n","requestBody":{"content":{"application/json":{"schema":{"description":"POSTed to `webhook_url` as JSON, signed with `X-QUBE-Signature` (`t=<timestamp>,v1=<hex HMAC-SHA256 of \"<timestamp>.<raw body>\" with your app's webhook secret>`).","properties":{"app_id":{"description":"Your app's id.","format":"uuid","type":"string"},"app_name":{"type":"string"},"error":{"description":"Set when `state` is `error`, `retryable`, `timed_out` or `discarded`. `error_type` says where it failed: for a `timed_out` request it is `timed_out`, and for a `discarded` one `discarded`, unless the request was `retryable` when your app discarded it, which keeps the connection error that held it up. `user_message` is safe to show an end user; `error_code` is QuickBooks' own status code for a business error, `hresult` the Web Connector's for a connection/XML error; `debug_message` is for you.","properties":{"debug_message":{"description":"Which element of the request the value came from, when known.","type":["string","null"]},"error_code":{"description":"QuickBooks' statusCode, for a business error.","type":["integer","null"]},"error_type":{"description":"`quickbooks_business_error`: QuickBooks refused the request -- `response_json.error` has its code. `quickbooks_connection_error`: the Web Connector ran on the customer's PC but could not get the request into QuickBooks, so nothing was applied -- QuickBooks was not running, the company file was not open or not the one this connection belongs to, or a window or message box open in QuickBooks was in the way. Only the customer can fix that, and `user_message` tells them how. `xml_error`: QuickBooks could not parse the qbXML; sent again as-is, it fails again. `outcome_unknown`: a write the Web Connector answered with an error in place of QuickBooks' answer, so whether QuickBooks applied it is not known: look in QuickBooks before sending it again. `unexpected_error`: anything else; for a query, which changes nothing, sending it again is safe.\n\n`timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, while QuickBooks had the request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. `response_too_large`: QuickBooks answered, but with more than QuBe Sync accepts for one answer (4 MB as the Web Connector sends it, about 3 MB of qbXML), so the answer wasn't kept and `response_json` is null. QuickBooks ran the request. Page the query (`iterator` and a smaller `max_returned`), or narrow it when QuickBooks doesn't page it; for a write, look before sending it again.\n\nWeb Connector problems on the customer's PC (its password, log file, the .QWC file) never reach QuBe Sync as an error: the Web Connector just stops calling in, and requests wait. Intuit's guide for those: https://quickbooks.intuit.com/learn-support/en-us/help-article/open-programs/fix-common-web-connector-errors-quickbooks-desktop/L9slolvg0_US_en_US","enum":["xml_error","quickbooks_connection_error","quickbooks_business_error","unexpected_error","response_too_large","outcome_unknown","timed_out","discarded"],"type":"string"},"hresult":{"description":"The Web Connector's HRESULT (e.g. `0x80040400`), for a connection or XML error. Informational: branch on `error_type`, not on this.","type":["string","null"]},"message":{"description":"The raw message from QuickBooks or the Web Connector; for `timed_out` and `discarded`, which neither sent, QuBe Sync's own.","type":"string"},"user_message":{"description":"A friendly message for the end user.","type":"string"}},"type":["object","null"]},"id":{"description":"The request's id, as the 201 returned it. For an iterated query, every page carries the first page's id here.","format":"uuid","type":"string"},"iteration_state":{"description":"`continue`: more pages will follow, each its own webhook. `done`: this was the last page. `max_sandbox_iterations_reached`: a sandbox app's page limit stopped the iteration.","enum":["not_applicable","continue","done","max_sandbox_iterations_reached"],"type":"string"},"links":{"description":"Present only with `response_xml_omitted`.","properties":{"self":{"description":"This page's request in the API, `response_xml` included.","format":"uri","type":"string"}},"type":"object"},"page":{"description":"The page number, when iterated.","type":["integer","null"]},"page_request_id":{"description":"This page's own id. Equal to `id` except on later pages of an iterated query.","format":"uuid","type":"string"},"response_json":{"$ref":"#/components/schemas/updateDataExtDef_response_json"},"response_xml":{"description":"QuickBooks' raw qbXML answer. `response_json` is the same, summarized. One answer can be at most 4 MB as the Web Connector sends it, about 3 MB of qbXML; QuickBooks' answer over that isn't kept: this is null and `error.error_type` is `response_too_large`. A webhook whose body would be over 1 MB is sent without it: null, with `response_xml_omitted` true; fetch it from `links.self`.","type":["string","null"]},"response_xml_omitted":{"description":"Present, and true, only when `response_xml` was left out to keep the body under 1 MB. `response_json` is still here; GET `links.self` for `response_xml`.","type":"boolean"},"sandbox":{"description":"Whether the app is a sandbox app.","type":"boolean"},"state":{"description":"`response_received`: QuickBooks accepted it; read `response_json`. `error`: it is over and QuBe Sync won't try again -- see `error`, and `response_json.error` for a QuickBooks business error; with `error_type` `outcome_unknown` a write may still have been applied, so look before sending it again. `retryable`: QuickBooks could not be reached and QuBe Sync keeps trying; show the customer `error.user_message` so they can fix it. `timed_out`: no answer came back -- the customer's computer lost its connection, or QuickBooks or the Web Connector was closed, mid-request. QuickBooks may still have applied it, so look before sending it again. `discarded`: your app discarded it before the Web Connector picked it up, so QuickBooks never got it. Both carry an `error`.","enum":["response_received","error","retryable","timed_out","discarded"],"type":"string"},"timestamp":{"description":"Unix seconds; the same `t` the signature covers.","type":"integer"}},"required":["app_id","app_name","sandbox","timestamp","id","page_request_id","state","response_json","error"],"type":"object"}}},"required":true},"responses":{"2XX":{"description":"Received. Anything else is retried with backoff for about 8 hours."}},"summary":"QuickBooks answered (or the request failed)"}}}},"description":"qbXML: `DataExtDefModRq`, from qbXML 2.0. The `data_ext_def_mod` wrapper from qbXML is also accepted.\n\nModifies an existing data extension definition. Notice that this Mod doesn’t allow you to change the type originally assigned to the data extension def, but it allows you to change just about everything else, such as its name and the objects it is assigned to.\n\nIntuit's reference: [DataExtDefMod](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/dataextdefmod).","operationId":"updateDataExtDef","parameters":[{"description":"The connection (a customer's QuickBooks company file) this request is queued for.","in":"path","name":"connection_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Where QuBe Sync POSTs the answered request (this same document with `response_json` filled in), signed with `X-QUBE-Signature`. Send one with every request: it is how answers are delivered. Optional only so a script can queue and look up `links.self` by hand. It must be an absolute http or https URL. It may not contain a username or password, and in production it may not point at localhost or a private, loopback or link-local address. A `qube listen` URL must be one of this app's. Nothing is ever sent to a reserved example domain such as example.com.","in":"query","name":"webhook_url","required":false,"schema":{"format":"uri","maxLength":2048,"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"data_ext_name":"Color","owner_id":"0"},"schema":{"properties":{"assign_to_object":{"items":{"enum":["ARRefundCreditCard","Account","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","Company","CreditCardCharge","CreditCardCredit","CreditMemo","Customer","Deposit","Employee","Estimate","InventoryAdjustment","Invoice","Item","ItemReceipt","JournalEntry","OtherName","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Vendor","VendorCredit"],"type":"string"},"type":"array"},"data_ext_format_string":{"description":"The string format required for the data extension.","type":"string"},"data_ext_list_require":{"description":"If `data_ext_list_require` is true, this data extension field is required to be entered in lists. The default value is false.","type":"boolean"},"data_ext_name":{"description":"The name of the data extension. If this is a custom field, `data_ext_name` will be visible as a label in the QuickBooks user interface. Also because `owner_id` and `data_ext_name` together make the data extension unique, and because custom fields all have the same `owner_id` of zero, the `data_ext_name` must be a unique value among existing custom fields.","type":"string"},"data_ext_new_name":{"description":"The new name for this field. Note that in the case of custom fields, `data_ext_new_name` can run into name conflicts, because the name space of custom fields (data extensions with an `owner_id` of 0) is shared by all applications.","type":"string"},"data_ext_txn_require":{"description":"If `data_ext_txn_require` is true, this data extension field is required to be entered in transaction. The default value is false.","type":"boolean"},"include_ret_element":{"items":{"enum":["AssignToObject","DataExtFormatString","DataExtID","DataExtListRequire","DataExtName","DataExtTxnRequire","DataExtType","EditSequence","ExternalGUID","ListID","OwnerID","TxnID","TxnNumber"],"type":"string"},"type":"array"},"owner_id":{"description":"`owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.","type":"string"},"remove_from_object":{"items":{"enum":["ARRefundCreditCard","Account","Bill","BillPaymentCheck","BillPaymentCreditCard","BuildAssembly","Charge","Check","Company","CreditCardCharge","CreditCardCredit","CreditMemo","Customer","Deposit","Employee","Estimate","InventoryAdjustment","Invoice","Item","ItemReceipt","JournalEntry","OtherName","PurchaseOrder","ReceivePayment","SalesOrder","SalesReceipt","SalesTaxPaymentCheck","Vendor","VendorCredit"],"type":"string"},"type":"array"},"request_id":{"description":"Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.","type":"string"}},"required":["data_ext_name","owner_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/QueuedRequest"},{"properties":{"response_json":{"anyOf":[{"$ref":"#/components/schemas/updateDataExtDef_response_json"},{"type":"null"}],"description":"`null` until answered."}},"type":"object"}]}},"required":["data"],"type":"object"}}},"description":"Queued for the connection's Web Connector. Pass `webhook_url` and QuBe Sync POSTs the answer to it once QuickBooks has answered (see the `answered` callback: its own payload, not this document). `links.self` returns this document on demand, with `response_json` filled in.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/SandboxPaused"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"Update data ext def","tags":["Data Ext Defs"]}}},"security":[{"apiKey":[]}],"servers":[{"description":"v2 API","url":"https://qubesync.com/api/v2"},{"description":"Local development server","url":"https://dev.qubesync.com/api/v2"}],"tags":[{"description":"Creating and managing the connection (a customer's QuickBooks company file) that every request below is queued against. See the Onboarding guide.","name":"Connections"},{"description":"Queueing qbXML you wrote yourself, listing the requests queued on a connection, and discarding one the app no longer wants. A `webhook_url` on each request is the integration path (see the Webhooks guide): the listing is for a dashboard, a script, or catching up after downtime.","name":"Queued Requests"},{"description":"Finding the record in a customer's company file that a name means, even written differently: ranked matches from QuBe Sync's index of the file's names, on realtime and simulated connections. See the Matching guide.","name":"Matching"},{"description":"Endpoints for publishing workflow definitions, starting runs, and answering a run that is waiting on a decision from your app. A workflow is one JSON statechart document; see the schema at /api/v2/workflows/schema.json.","name":"Workflows"},{"name":"Account Tax Line Infos"},{"name":"Accounts"},{"name":"Aging Reports"},{"name":"Alerts"},{"name":"Ar Refund Credit Cards"},{"name":"Bar Codes"},{"name":"Bill Payment Checks"},{"name":"Bill Payment Credit Cards"},{"name":"Bill To Pays"},{"name":"Billing Rates"},{"name":"Bills"},{"name":"Budget Summary Reports"},{"name":"Build Assemblies"},{"name":"Charges"},{"name":"Checks"},{"name":"Classes"},{"name":"Cleared Statuses"},{"name":"Companies"},{"name":"Company Activities"},{"name":"Credit Card Charges"},{"name":"Credit Card Credits"},{"name":"Credit Memos"},{"name":"Currencies"},{"name":"Custom Detail Reports"},{"name":"Custom Summary Reports"},{"name":"Customer Msgs"},{"name":"Customer Types"},{"name":"Customers"},{"name":"Data Event Recovery Infos"},{"name":"Data Ext Defs"},{"name":"Data Exts"},{"name":"Date Driven Terms"},{"name":"Deposits"},{"name":"Employee Defaults"},{"name":"Employees"},{"name":"Entities"},{"name":"Estimates"},{"name":"Form1099 Category Account Mappings"},{"name":"General Detail Reports"},{"name":"General Summary Reports"},{"name":"Hosts"},{"name":"Inventory Adjustments"},{"name":"Inventory Sites"},{"name":"Invoices"},{"name":"Item Assemblies Can Builds"},{"name":"Item Discounts"},{"name":"Item Fixed Assets"},{"name":"Item Groups"},{"name":"Item Inventories"},{"name":"Item Inventory Assemblies"},{"name":"Item Non Inventories"},{"name":"Item Other Charges"},{"name":"Item Payments"},{"name":"Item Receipts"},{"name":"Item Sales Tax Groups"},{"name":"Item Sales Taxes"},{"name":"Item Services"},{"name":"Item Sites"},{"name":"Item Subtotals"},{"name":"Items"},{"name":"Job Reports"},{"name":"Job Types"},{"name":"Journal Entries"},{"name":"Leads"},{"name":"List Deleteds"},{"name":"List Displays"},{"name":"List Merge"},{"name":"Lists"},{"name":"Other Names"},{"name":"Paychecks"},{"name":"Payment Methods"},{"name":"Payments"},{"name":"Payroll Detail Reports"},{"name":"Payroll Item Additions"},{"name":"Payroll Item Company Contributions"},{"name":"Payroll Item Deductions"},{"name":"Payroll Item Direct Deposits"},{"name":"Payroll Item Non Wages"},{"name":"Payroll Item Taxes"},{"name":"Payroll Item Wages"},{"name":"Payroll Item Workers Compensations"},{"name":"Payroll Items"},{"name":"Payroll Last Periods"},{"name":"Payroll Liability Adjustments"},{"name":"Payroll Liability Checks"},{"name":"Payroll Prior Payments"},{"name":"Payroll Summary Reports"},{"name":"Payroll Year To Date Adjustments"},{"name":"Preferences"},{"name":"Price Levels"},{"name":"Purchase Orders"},{"name":"Qb Command Exec"},{"name":"Receive Payment To Deposits"},{"name":"Receive Payments"},{"name":"Sales Orders"},{"name":"Sales Receipts"},{"name":"Sales Reps"},{"name":"Sales Tax Codes"},{"name":"Sales Tax Payables"},{"name":"Sales Tax Payment Checks"},{"name":"Sales Tax Return Lines"},{"name":"Sales Tax Returns"},{"name":"Ship Methods"},{"name":"Special Accounts"},{"name":"Special Items"},{"name":"Standard Terms"},{"name":"Templates"},{"name":"Terms"},{"name":"Time Reports"},{"name":"Time Trackings"},{"name":"To Dos"},{"name":"Transactions"},{"name":"Transfer Inventories"},{"name":"Transfers"},{"name":"Txn Deleteds"},{"name":"Txn Displays"},{"name":"Txn Void"},{"name":"Txns"},{"name":"Unit Of Measure Sets"},{"name":"Vehicle Mileages"},{"name":"Vehicles"},{"name":"Vendor Credits"},{"name":"Vendor Types"},{"name":"Vendors"},{"name":"Workers Comp Codes"}]}